mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Added #29
This commit is contained in:
parent
2991be857e
commit
d983a2fc5c
|
@ -716,6 +716,8 @@ def day_overview(): # time.strftime('%Y-%m-%dT%H:%M:%S.000Z', time.gmtime(time.
|
||||||
admin = 0
|
admin = 0
|
||||||
changed_bytes = 0
|
changed_bytes = 0
|
||||||
new_articles = 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]:
|
for item in result[0]:
|
||||||
activity = add_to_dict(activity, item["user"])
|
activity = add_to_dict(activity, item["user"])
|
||||||
hours = add_to_dict(hours, datetime.datetime.strptime(item["timestamp"], "%Y-%m-%dT%H:%M:%SZ").hour)
|
hours = add_to_dict(hours, datetime.datetime.strptime(item["timestamp"], "%Y-%m-%dT%H:%M:%SZ").hour)
|
||||||
|
|
Loading…
Reference in a new issue