From ed0bfd1526b9bb6ad407f972599653661921bc04 Mon Sep 17 00:00:00 2001 From: Davte Date: Wed, 16 Dec 2020 10:05:19 +0100 Subject: [PATCH] Fixed bug in location setting function --- ciclopibot/__init__.py | 2 +- ciclopibot/ciclopi.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ciclopibot/__init__.py b/ciclopibot/__init__.py index 4a5cffb..acabc0e 100644 --- a/ciclopibot/__init__.py +++ b/ciclopibot/__init__.py @@ -3,7 +3,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __license__ = "GNU General Public License v3.0" -__version__ = "1.2.4" +__version__ = "1.2.5" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/ciclopibot/ciclopi.py b/ciclopibot/ciclopi.py index c0f5bc4..cc1cdb7 100644 --- a/ciclopibot/ciclopi.py +++ b/ciclopibot/ciclopi.py @@ -1479,7 +1479,7 @@ async def _ciclopi_button_favourites(bot, update, user_record, arguments): return result, text, reply_markup -async def _ciclopi_button_setpos(bot, update, user_record): +async def _ciclopi_button_setpos(bot, update, user_record, language): result, text, reply_markup = '', '', None chat_id = ( update['message']['chat']['id'] if 'message' in update @@ -1492,7 +1492,8 @@ async def _ciclopi_button_setpos(bot, update, user_record): ) bot.set_individual_location_handler( await async_wrapper( - set_ciclopi_location + set_ciclopi_location, + language=language ), update )