diff options
author | clarkzjw <[email protected]> | 2023-02-27 16:40:59 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-27 16:40:59 -0800 |
commit | 6507ee4ecf4da49390b20ef5afcea9ea88ca125e (patch) | |
tree | ba7a8f5cc4102c5a050e6528e3ab6aaab6bbeb30 /command.py | |
parent | 9bb00ee842649590cbd30af3e047e40ca9da9d90 (diff) | |
download | swarm2fediverse-6507ee4ecf4da49390b20ef5afcea9ea88ca125e.tar.gz |
fix influxdb volume, missing user parameter in list_commandv0.1.1
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 | ||