Browse Source

fixed dict keys

master
Holger Frey 6 years ago
parent
commit
354c5f84fb
  1. 2
      s2watchdog/__init__.py

2
s2watchdog/__init__.py

@ -122,7 +122,7 @@ def run():
ttl = data['time_to_live'] - 1 ttl = data['time_to_live'] - 1
if ttl <= 0: if ttl <= 0:
data['emails_sent'] = data['emails_sent'] + 1 data['emails_sent'] = data['emails_sent'] + 1
data['time_to_live'] = GRACE_PERIOD * data['email_sent'] data['time_to_live'] = GRACE_PERIOD * data['emails_sent']
save_data(DATA_STORE_PATH, data) save_data(DATA_STORE_PATH, data)
send_alert_mail(data) send_alert_mail(data)

Loading…
Cancel
Save