diff --git a/cgi-bin/webnotes/utils/scheduler.py b/cgi-bin/webnotes/utils/scheduler.py index 69f9c488e5..8290399ac4 100644 --- a/cgi-bin/webnotes/utils/scheduler.py +++ b/cgi-bin/webnotes/utils/scheduler.py @@ -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: