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