mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fixed function
This commit is contained in:
parent
d21567e2fa
commit
fac7acfe57
|
@ -506,7 +506,7 @@ def day_overview(): #time.strftime('%Y-%m-%dT%H:%M:%S.000Z', time.gmtime(time.ti
|
||||||
if item["type"] == "log":
|
if item["type"] == "log":
|
||||||
files = files+1 if item["logtype"] == item["logaction"] == "upload" else files
|
files = files+1 if item["logtype"] == item["logaction"] == "upload" else files
|
||||||
admin = admin+1 if item["logtype"] in ["delete", "merge", "block", "protect", "import", "rights", "abusefilter", "interwiki", "managetags"] else admin
|
admin = admin+1 if item["logtype"] in ["delete", "merge", "block", "protect", "import", "rights", "abusefilter", "interwiki", "managetags"] else admin
|
||||||
overall = round(new_articles+edits*0.1+files*0.3+admin*0.1+math.abs(changed_bytes*0.001), 2)
|
overall = round(new_articles+edits*0.1+files*0.3+admin*0.1+math.fabs(changed_bytes*0.001), 2)
|
||||||
embed = defaultdict(dict)
|
embed = defaultdict(dict)
|
||||||
embed["title"] = _("Daily overview")
|
embed["title"] = _("Daily overview")
|
||||||
embed["url"] = "https://{wiki}.gamepedia.com/Special:Statistics".format(wiki=settings["wiki"])
|
embed["url"] = "https://{wiki}.gamepedia.com/Special:Statistics".format(wiki=settings["wiki"])
|
||||||
|
|
Loading…
Reference in a new issue