1
0
Fork 0

Fix kfet command and add PyCharm to gitignore

This commit is contained in:
Ethanell 2019-11-25 19:50:17 +01:00
parent b95ddfcdc0
commit 4cc233fcd2
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View file

@ -9,3 +9,6 @@ logs/
edt
edt.*
token.ini
# PyCharm
.idea/

2
bot.py
View file

@ -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)