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
parent9bb00ee842649590cbd30af3e047e40ca9da9d90 (diff)
downloadswarm2fediverse-6507ee4ecf4da49390b20ef5afcea9ea88ca125e.tar.gz
fix influxdb volume, missing user parameter in list_commandv0.1.1
-rw-r--r--command.py4
-rw-r--r--contrib/docker-compose.yaml1
-rw-r--r--prompt/string.py2
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
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
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:
31 ports: 31 ports:
32 - "8086:8086" 32 - "8086:8086"
33 volumes: 33 volumes:
34 - influxdb:/var/lib/influxdb2
34 - "./influx/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh" 35 - "./influx/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh"
35 36
36 grafana: 37 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:" \
35 "\n`/login` - login to Fediverse account. " \ 35 "\n`/login` - login to Fediverse account. " \
36 "You can use this command to login to multiple Fediverse accounts" \ 36 "You can use this command to login to multiple Fediverse accounts" \
37 "\n`/list` - list current linked Fediverse accounts" \ 37 "\n`/list` - list current linked Fediverse accounts" \
38 "\n`/logout [number]` - logout from specified Fediverse account, default logout from all" \ 38 "\n`/logout` - logout from specified Fediverse account, default logout from all" \
39 "\n`/vis` - toggle visibility of your checkins on specified instances, default=private" \ 39 "\n`/vis` - toggle visibility of your checkins on specified instances, default=private" \
40 "\n`/tos` - show ToS message" \ 40 "\n`/tos` - show ToS message" \
41 "\n`/cancel` - cancel current operation during checkins" 41 "\n`/cancel` - cancel current operation during checkins"
Powered by cgit v1.2.3 (git 2.41.0)