forked from platypush/platypush
Parse actions in cron also from list
This commit is contained in:
parent
c7711d75a1
commit
470bd62af7
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Cronjob(Thread):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.state = CronjobState.IDLE
|
self.state = CronjobState.IDLE
|
||||||
|
|
||||||
if isinstance(actions, dict):
|
if isinstance(actions, dict) or isinstance(actions, list):
|
||||||
self.actions = Procedure.build(name=name + '__Cron', _async=False, requests=actions)
|
self.actions = Procedure.build(name=name + '__Cron', _async=False, requests=actions)
|
||||||
else:
|
else:
|
||||||
self.actions = actions
|
self.actions = actions
|
||||||
|
|
Loading…
Reference in a new issue