Sync #6

Merged
profitroll merged 9 commits from dev into i18n 2023-08-30 15:43:30 +03:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit c91d7f3afa - Show all commits

View File

@ -61,7 +61,7 @@ async def search_name(app: PyroClient, message: Message) -> Union[Location, None
) )
continue continue
locations = locations.reverse() locations.reverse()
keyboard = ReplyKeyboard(resize_keyboard=True, row_width=2) keyboard = ReplyKeyboard(resize_keyboard=True, row_width=2)
keyboard.add(*[ReplyButton(db_record["name"]) for db_record in locations]) keyboard.add(*[ReplyButton(db_record["name"]) for db_record in locations])

View File

@ -26,13 +26,13 @@ async def search_nearby(app: PyroClient, message: Message) -> Union[Location, No
locations = await col_locations.find(query).limit(6).to_list() locations = await col_locations.find(query).limit(6).to_list()
if len(locations) == 0 or locations is None: if len(locations) == 0:
await message.reply_text( await message.reply_text(
app._("search_nearby_empty", "messages", locale=user.locale) app._("search_nearby_empty", "messages", locale=user.locale)
) )
return await search_name(app, message) return await search_name(app, message)
locations = locations.reverse() locations.reverse()
keyboard = ReplyKeyboard(resize_keyboard=True, row_width=2) keyboard = ReplyKeyboard(resize_keyboard=True, row_width=2)
keyboard.add(*[ReplyButton(db_record["name"]) for db_record in locations]) keyboard.add(*[ReplyButton(db_record["name"]) for db_record in locations])