Fixed coords not being string in database

This commit is contained in:
Joan
2023-03-31 15:35:56 +02:00
parent 2e8ef8aee0
commit 3c1fb2474b

View File

@@ -270,8 +270,8 @@ async def continue_or_finish(update: Update, context: CallbackContext):
await context.bot.send_message(chat_id=update.effective_chat.id,
text='Pon las coordenadas siguiendo el ejemplo: 41.34, 0.65', reply_markup=ForceReply())
return CONTINUE_OR_FINISH
context.user_data['latitude'] = latitude
context.user_data['longitude'] = longitude
context.user_data['latitude'] = str(latitude)
context.user_data['longitude'] = str(longitude)
context.user_data['last_step'] = ''
if qd == 'distance':