fix to scheduler.py
This commit is contained in:
parent
05b46d8ed2
commit
71761d009a
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ class Scheduler:
|
|||
|
||||
# if recurring, update next_execution
|
||||
if e['recurring']:
|
||||
self.conn.sql("update Event set next_execution = addtime(now(), sec_to_time(%s))", e['interval'])
|
||||
self.conn.sql("update Event set next_execution = addtime(now(), sec_to_time(%s)) where event=%s", (e['interval'], e['event'])
|
||||
|
||||
# else clear
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue