From 5eee10a36553c3ad1d0405c34f62fe073357e157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Thu, 16 May 2024 22:08:45 +0100 Subject: [PATCH] Use main praze css for stats pages --- statsgen.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/statsgen.py b/statsgen.py index 3313e3b..c3985f5 100644 --- a/statsgen.py +++ b/statsgen.py @@ -256,10 +256,8 @@ def yeargen(local=False): filewrite = open(yearpath + "/index.html", "a") filewrite.write("\n\n\n\n\nFic stats " + str(year) + "\n\n\n\n\n\n\n\n
\n

Fic stats for " + str(year) + "

\n") + filewrite.write("https://tre.praze.net") + filewrite.write("/main.css\">\n\n\n\n\n\n
\n

Fic stats for " + str(year) + "

\n") allfics = [] ficdeets = [] datesplit = [] @@ -478,11 +476,11 @@ def yeargen(local=False): for event in neweventslist: filewrite.write("\n") if event["eventlocation"] == "dwcomm": - filewrite.write("\"[community" + (event["eventname"]).replace("-","_") + "") + filewrite.write("\"[community" + (event["eventname"]).replace("-","_") + "") elif event["eventlocation"] == "dwjournal": - filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") + filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") elif event["eventlocation"] == "ljjournal": - filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") + filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") else: filewrite.write(event["eventname"]) filewrite.write("\n" + str(event["words"]) + "" + str(len(event["ficno"])) + " fic") @@ -493,11 +491,11 @@ def yeargen(local=False): for event in neweventslist: filewrite.write("

") if event["eventlocation"] == "dwcomm": - filewrite.write("\"[community" + (event["eventname"]).replace("-","_") + "") + filewrite.write("\"[community" + (event["eventname"]).replace("-","_") + "") elif event["eventlocation"] == "dwjournal": - filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") + filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") elif event["eventlocation"] == "ljjournal": - filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") + filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") else: filewrite.write(event["eventname"]) filewrite.write("

\n
    \n")