_schedule_match_part doesn't take an array

This commit is contained in:
jesopo 2020-02-14 00:01:40 +00:00
parent 4f9d51533f
commit db5787a594

View file

@ -46,8 +46,7 @@ class Module(ModuleManager.BaseModule):
def _schedule_match_part(self, i, timestamp_part, schedule_part): def _schedule_match_part(self, i, timestamp_part, schedule_part):
if "," in schedule_part: if "," in schedule_part:
for schedule_part in schedule_part.split(","): for schedule_part in schedule_part.split(","):
if self._schedule_match_part( if self._schedule_match_part(i, timestamp_part, schedule_part):
i, [timestamp_part], [schedule_part]):
return True return True
elif "/" in schedule_part: elif "/" in schedule_part: