1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Fix database access on /newevent

This commit is contained in:
Steffo 2019-02-26 21:06:33 +01:00
parent de6749db15
commit e3b655f9bb

View file

@ -628,6 +628,7 @@ def parse_timestring(timestring: str) -> typing.Union[datetime.timedelta, dateti
@command @command
@database_access
def cmd_newevent(bot: telegram.Bot, update: telegram.Update, session: db.Session): def cmd_newevent(bot: telegram.Bot, update: telegram.Update, session: db.Session):
try: try:
_, timestring, name_desc = update.message.text.split(" ", 2) _, timestring, name_desc = update.message.text.split(" ", 2)