From 6507ee4ecf4da49390b20ef5afcea9ea88ca125e Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Mon, 27 Feb 2023 16:40:59 -0800 Subject: fix influxdb volume, missing user parameter in list_command --- command.py | 4 ++-- contrib/docker-compose.yaml | 1 + prompt/string.py | 2 +- 3 files changed, 4 insertions(+), 3 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 @check_user -async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: +async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE, user: User) -> None: result = get_user_home_instance(str(update.effective_user.id)) if len(result) == 0: pass @@ -49,7 +49,7 @@ async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No @check_user -async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: +async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE, user: User) -> None: if delete_user_by_id(str(update.effective_user.id)): await update.message.reply_text(PROMPT_LOGOUT_SUCCESS, parse_mode=ParseMode.HTML, reply_markup=LOGIN_MENU) diff --git a/contrib/docker-compose.yaml b/contrib/docker-compose.yaml index 8aeaff8..acd38c9 100644 --- a/contrib/docker-compose.yaml +++ b/contrib/docker-compose.yaml @@ -31,6 +31,7 @@ services: ports: - "8086:8086" volumes: + - influxdb:/var/lib/influxdb2 - "./influx/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh" grafana: diff --git a/prompt/string.py b/prompt/string.py index e60085c..3cc0a24 100644 --- a/prompt/string.py +++ b/prompt/string.py @@ -35,7 +35,7 @@ PROMPT_HELP = "Available commands:" \ "\n`/login` - login to Fediverse account. " \ "You can use this command to login to multiple Fediverse accounts" \ "\n`/list` - list current linked Fediverse accounts" \ - "\n`/logout [number]` - logout from specified Fediverse account, default logout from all" \ + "\n`/logout` - logout from specified Fediverse account, default logout from all" \ "\n`/vis` - toggle visibility of your checkins on specified instances, default=private" \ "\n`/tos` - show ToS message" \ "\n`/cancel` - cancel current operation during checkins" -- cgit v1.2.3