This commit is contained in:
Frisk 2018-09-30 22:40:48 +02:00
parent 2991be857e
commit d983a2fc5c
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -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)