From 757d3cdd5dd1cc0231856b6b792750a6577223e8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 17 Feb 2019 21:57:01 +0100 Subject: [PATCH] Fix bug in page_wiki_lock --- webserver.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/webserver.py b/webserver.py index 9713d282..05de8a34 100644 --- a/webserver.py +++ b/webserver.py @@ -316,16 +316,20 @@ def page_wiki_lock(key: str): if wiki_page.locked: telegram_bot.send_message(config["Telegram"]["main_group"], strings.safely_format_string(strings.WIKI.PAGE_LOCKED, - key=key, - user=fl_g.user.username), + words={ + "key": key, + "user": fl_g.user.username + }), parse_mode="HTML", disable_web_page_preview=True, disable_notification=True) else: telegram_bot.send_message(config["Telegram"]["main_group"], strings.safely_format_string(strings.WIKI.PAGE_UNLOCKED, - key=key, - user=fl_g.user.username), + words={ + "key": key, + "user": fl_g.user.username + }), parse_mode="HTML", disable_web_page_preview=True, disable_notification=True)