aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'command.py')
-rw-r--r--command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.py b/command.py
index db85538..e92dc1c 100644
--- a/command.py
+++ b/command.py
@@ -35,7 +35,7 @@ async def tos_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> Non
35 35
36 36
37@check_user 37@check_user
38async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: 38async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE, user: User) -> None:
39 result = get_user_home_instance(str(update.effective_user.id)) 39 result = get_user_home_instance(str(update.effective_user.id))
40 if len(result) == 0: 40 if len(result) == 0:
41 pass 41 pass
@@ -49,7 +49,7 @@ async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No
49 49
50 50
51@check_user 51@check_user
52async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: 52async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE, user: User) -> None:
53 if delete_user_by_id(str(update.effective_user.id)): 53 if delete_user_by_id(str(update.effective_user.id)):
54 await update.message.reply_text(PROMPT_LOGOUT_SUCCESS, parse_mode=ParseMode.HTML, reply_markup=LOGIN_MENU) 54 await update.message.reply_text(PROMPT_LOGOUT_SUCCESS, parse_mode=ParseMode.HTML, reply_markup=LOGIN_MENU)
55 55
Powered by cgit v1.2.3 (git 2.41.0)