support cron schedule range values
This commit is contained in:
parent
48bab203bf
commit
2084285480
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ class Module(ModuleManager.BaseModule):
|
||||||
if (timestamp_part%schedule_step) == 0:
|
if (timestamp_part%schedule_step) == 0:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
elif "-" in schedule_part:
|
||||||
|
left, right = schedule_part.split("-", 1)
|
||||||
|
return int(left) <= timestamp_part <= int(right)
|
||||||
|
|
||||||
elif schedule_part == "*":
|
elif schedule_part == "*":
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue