From 470bd62af7f7ab07f56b852a9b9b6c3f9673a8cc Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 11 Nov 2020 17:09:32 +0100 Subject: [PATCH] Parse actions in cron also from list --- platypush/cron/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/cron/scheduler.py b/platypush/cron/scheduler.py index 88fe24b350..b374eac0c1 100644 --- a/platypush/cron/scheduler.py +++ b/platypush/cron/scheduler.py @@ -27,7 +27,7 @@ class Cronjob(Thread): self.name = name 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) else: self.actions = actions