aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-27 16:40:59 -0800
committerclarkzjw <[email protected]>2023-02-27 16:40:59 -0800
commit6507ee4ecf4da49390b20ef5afcea9ea88ca125e (patch)
treeba7a8f5cc4102c5a050e6528e3ab6aaab6bbeb30 /command.py
parent9bb00ee842649590cbd30af3e047e40ca9da9d90 (diff)
downloadswarm2fediverse-0.1.1.tar.gz
fix influxdb volume, missing user parameter in list_commandv0.1.1
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)