From 354c5f84fbe4f042f90041e608a92234e223fcc5 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 13 Aug 2018 11:43:25 +0200 Subject: [PATCH] fixed dict keys --- s2watchdog/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s2watchdog/__init__.py b/s2watchdog/__init__.py index 41395e5..8b97301 100644 --- a/s2watchdog/__init__.py +++ b/s2watchdog/__init__.py @@ -122,7 +122,7 @@ def run(): ttl = data['time_to_live'] - 1 if ttl <= 0: 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) send_alert_mail(data)