diff options
Diffstat (limited to 'maconomy_hours.py')
-rw-r--r-- | maconomy_hours.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maconomy_hours.py b/maconomy_hours.py index e11eed9..61fa6ee 100644 --- a/maconomy_hours.py +++ b/maconomy_hours.py @@ -64,7 +64,7 @@ def manager(timesheets, config, mailer): def ceo(timesheets, config, mailer): to = config.get("mail", "ceo") # Filter only "bad" entries - relevant = [t for t in timesheets if utils.need_manager_mail(t)] + relevant = [t for t in timesheets if not t.is_done()] view = CEOEmailView() mail = view.render(relevant) subject = "Warning: Timesheet overdue for {} employees".format(len(relevant)) @@ -75,7 +75,7 @@ def ceo(timesheets, config, mailer): def summary(timesheets): - affected = [t for t in timesheets if utils.need_manager_mail(t)] + affected = [t for t in timesheets if not t.is_done()] for timesheet in affected: print timesheet.status_summary() print "Number of overdue timesheets: {}".format(len(affected)) |