1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix some bugs

This commit is contained in:
Steffo 2019-01-02 19:09:47 +01:00
parent 8bc9f84cdb
commit 3fb9905166

View file

@ -409,8 +409,11 @@ def hooks_github():
except Exception:
abort(400)
return
if j is None:
abort(400)
return
# TODO: add secret check
message = f"🐙 {j['size']} aggiornamenti a Royalnet ricevuti:\n"
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
for commit in j.get("commits", []):
message += f"<b>{commit['message']}</b> di {commit['author']}\n"
telegram_bot.send_message(config["Telegram"]["main_group"],