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:
parent
de6749db15
commit
e3b655f9bb
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue