Timers._add takes a "context" param

This commit is contained in:
jesopo 2018-10-13 09:09:51 +01:00
parent 64cc1bf16c
commit 33921a8912

View file

@ -53,7 +53,7 @@ class Timers(object):
def setup(self, timers):
for name, timer in timers:
id = name.split("timer-", 1)[1]
self._add(timer["name"], timer["delay"], timer[
self._add(timer["name"], None, timer["delay"], timer[
"next-due"], id, False, timer["kwargs"])
def _persist(self, timer):