fix to scheduler.py

This commit is contained in:
Rushabh Mehta 2011-08-05 13:02:13 +05:30
parent 05b46d8ed2
commit 71761d009a

View file

@ -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: