From e3b655f9bb28ef9bccf9973e47412e94e91d0b8b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 26 Feb 2019 21:06:33 +0100 Subject: [PATCH] Fix database access on /newevent --- telegrambot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telegrambot.py b/telegrambot.py index 7321fe6f..2933f97f 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -628,6 +628,7 @@ def parse_timestring(timestring: str) -> typing.Union[datetime.timedelta, dateti @command +@database_access def cmd_newevent(bot: telegram.Bot, update: telegram.Update, session: db.Session): try: _, timestring, name_desc = update.message.text.split(" ", 2)