Fixed coords not being string in database
This commit is contained in:
@@ -270,8 +270,8 @@ async def continue_or_finish(update: Update, context: CallbackContext):
|
|||||||
await context.bot.send_message(chat_id=update.effective_chat.id,
|
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())
|
text='Pon las coordenadas siguiendo el ejemplo: 41.34, 0.65', reply_markup=ForceReply())
|
||||||
return CONTINUE_OR_FINISH
|
return CONTINUE_OR_FINISH
|
||||||
context.user_data['latitude'] = latitude
|
context.user_data['latitude'] = str(latitude)
|
||||||
context.user_data['longitude'] = longitude
|
context.user_data['longitude'] = str(longitude)
|
||||||
context.user_data['last_step'] = ''
|
context.user_data['last_step'] = ''
|
||||||
|
|
||||||
if qd == 'distance':
|
if qd == 'distance':
|
||||||
|
|||||||
Reference in New Issue
Block a user