diff options
Diffstat (limited to 'command.py')
-rw-r--r-- | command.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
38 | async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: | 38 | async 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 |
52 | async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: | 52 | async 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 | ||