From 4cc233fcd204d0062d1845e3198375c19c34a02d Mon Sep 17 00:00:00 2001 From: flifloo Date: Mon, 25 Nov 2019 19:50:17 +0100 Subject: [PATCH] Fix kfet command and add PyCharm to gitignore --- .gitignore | 3 +++ bot.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f6ddfd9..d532c87 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ logs/ edt edt.* token.ini + +# PyCharm +.idea/ diff --git a/bot.py b/bot.py index 2a7fbb4..e5df0d3 100644 --- a/bot.py +++ b/bot.py @@ -178,7 +178,7 @@ async def kfet(message: types.Message): cmds = requests.get(KFET_URL).json() if cmds: for c in cmds: - msg += markdown.code(c) + " " if cmds[c]["statut"] == "ok" else "" + msg += markdown.code(c) + " " if cmds[c] == "ok" else "" await message.reply(msg, parse_mode=ParseMode.MARKDOWN)