From 3bea84bea8ac3f1d7ea0d558652b3835ef6881ad Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 13 Aug 2018 11:57:01 +0200 Subject: [PATCH] fixed data saving --- s2watchdog/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/s2watchdog/__init__.py b/s2watchdog/__init__.py index 28d6c3a..963523a 100644 --- a/s2watchdog/__init__.py +++ b/s2watchdog/__init__.py @@ -125,7 +125,8 @@ def run(): if ttl <= 0: data['emails_sent'] = data['emails_sent'] + 1 data['time_to_live'] = GRACE_PERIOD * data['emails_sent'] - save_data(DATA_STORE_PATH, data) send_alert_mail(data) print("SEND MAIL") + save_data(DATA_STORE_PATH, data) +