aboutsummaryrefslogtreecommitdiff
path: root/jobs/JobBase.py
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/JobBase.py')
-rwxr-xr-xjobs/JobBase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/JobBase.py b/jobs/JobBase.py
index c5be180..3561992 100755
--- a/jobs/JobBase.py
+++ b/jobs/JobBase.py
@@ -44,9 +44,9 @@ class JobBase(object):
return self.stateName
"""Returns True if the job should execute this cron-run"""
- def shouldExecute(self, cronmode):
+ def shouldExecute(self, cronmodes):
frequency = self.executeEvery()
- if cronmode == frequency:
+ if frequency in cronmodes:
return True
return False