diff --git a/s2watchdog/__init__.py b/s2watchdog/__init__.py index 963523a..f46b012 100644 --- a/s2watchdog/__init__.py +++ b/s2watchdog/__init__.py @@ -127,6 +127,8 @@ def run(): data['time_to_live'] = GRACE_PERIOD * data['emails_sent'] send_alert_mail(data) print("SEND MAIL") + else: + data['time_to_live'] = ttl save_data(DATA_STORE_PATH, data)