diff options
Diffstat (limited to 'statustracker.py')
-rwxr-xr-x | statustracker.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/statustracker.py b/statustracker.py index 2c3350c..d092266 100755 --- a/statustracker.py +++ b/statustracker.py @@ -11,12 +11,14 @@ class StatusTracker: self.lastRunJob = 0 self.config = config - def isAllGood(self): - return self.emailNotificationsAreWorking and \ - time.time() - self.lastRunJob < 120 + def isMailGood(self): + return self.emailNotificationsAreWorking + + def isJobsGood(self): + return time.time() - self.lastRunJob < 120 def markJobRan(self): self.lastRunJob = time.time() def markEmailStatus(self, working): - self.emailNotificationsAreWorking = working
\ No newline at end of file + self.emailNotificationsAreWorking = working |