1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +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
@database_access
def cmd_newevent(bot: telegram.Bot, update: telegram.Update, session: db.Session):
try:
_, timestring, name_desc = update.message.text.split(" ", 2)