From d983a2fc5c155f7ef7519192ac438f2ed5233258 Mon Sep 17 00:00:00 2001 From: Frisk Date: Sun, 30 Sep 2018 22:40:48 +0200 Subject: [PATCH] Added #29 --- rcgcdw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rcgcdw.py b/rcgcdw.py index dfae8bf..f06a312 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -716,6 +716,8 @@ def day_overview(): # time.strftime('%Y-%m-%dT%H:%M:%S.000Z', time.gmtime(time. admin = 0 changed_bytes = 0 new_articles = 0 + if not result[0] and not settings["send_empty_overview"]: + return # no changes in this day for item in result[0]: activity = add_to_dict(activity, item["user"]) hours = add_to_dict(hours, datetime.datetime.strptime(item["timestamp"], "%Y-%m-%dT%H:%M:%SZ").hour)