From f98865497506d8b30749fd2481290fb105c37622 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 13 Aug 2018 11:58:56 +0200 Subject: [PATCH] countdown of ttl fixed --- s2watchdog/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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)