From f471deedd2d12dd36e99a1b72e6ff1b6674606ff Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 15 Dec 2022 15:00:27 +0100 Subject: [PATCH] Fixed typos --- modules/commands/application.py | 1 + modules/handlers/confirmation.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/commands/application.py b/modules/commands/application.py index c922186..34fe73d 100644 --- a/modules/commands/application.py +++ b/modules/commands/application.py @@ -23,6 +23,7 @@ async def cmd_application(app, msg): holo_user = HoloUser((await app.get_users(msg.command[1])).id) except bad_request_400.UsernameInvalid: await msg.reply_text(locale("no_user_application", "message").format(msg.command[1]), quote=should_quote(msg)) + return application = col_applications.find_one({"user": holo_user.id}) application_content = [] diff --git a/modules/handlers/confirmation.py b/modules/handlers/confirmation.py index bedf715..edd97a9 100644 --- a/modules/handlers/confirmation.py +++ b/modules/handlers/confirmation.py @@ -53,8 +53,7 @@ async def confirm_yes(app, msg): InlineKeyboardButton(text=str(locale("reapply_no", "button")), callback_data=f"reapply_no_{holo_user.id}") ] ] - ), - parse_mode=ParseMode.MARKDOWN + ) ) else: await app.send_message(chat_id=configGet("admin_group"), text=(locale("application_got", "message")).format(str(holo_user.id), msg.from_user.first_name, msg.from_user.last_name, msg.from_user.username, "\n".join(application_content)), parse_mode=ParseMode.MARKDOWN, reply_markup=InlineKeyboardMarkup( @@ -72,8 +71,7 @@ async def confirm_yes(app, msg): InlineKeyboardButton(text=str(locale("sub_russian", "button")), callback_data=f"sub_russian_{holo_user.id}") ] ] - ), - parse_mode=ParseMode.MARKDOWN + ) ) logWrite(f"User {holo_user.id} sent his application and it will now be reviewed")