From 1349b929d792f3eec6b9602c6547766983f8e074 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 13 Aug 2018 11:42:37 +0200 Subject: [PATCH] fixed typos --- s2watchdog/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s2watchdog/__init__.py b/s2watchdog/__init__.py index f6219c7..41395e5 100644 --- a/s2watchdog/__init__.py +++ b/s2watchdog/__init__.py @@ -66,7 +66,7 @@ def load_data(path): return DEFAULTS -def save_data(path, data=None) +def save_data(path, data=None): data = data or DEFAULTS with open(path, 'w') as file_handle: json.dump(data, file_handle) @@ -121,7 +121,7 @@ def run(): ttl = data['time_to_live'] - 1 if ttl <= 0: - data['email_sent'] = data['email_sent'] + 1 + data['emails_sent'] = data['emails_sent'] + 1 data['time_to_live'] = GRACE_PERIOD * data['email_sent'] save_data(DATA_STORE_PATH, data) send_alert_mail(data)