Skip to content

Commit

Permalink
Correct field in age check.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Aug 21, 2017
1 parent 9188062 commit 57bb3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/summarise.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ def notify_slack(hook, data):
white_colour = "danger"
else:
white_colour = "good"
if (datetime.datetime.now() - data["oldest_spam_update"]).days > 2:
if (datetime.datetime.now() - data["newest_spam_update"]).days > 2:
spam_age_colour = "danger"
else:
spam_age_colour = "good"
if (datetime.datetime.now() - data["oldest_white_update"]).days > 2:
if (datetime.datetime.now() - data["newest_white_update"]).days > 2:
white_age_colour = "danger"
else:
white_age_colour = "good"
Expand Down

0 comments on commit 57bb3a8

Please sign in to comment.