From 266f7839eb7c6d65c9a88d728fb06b18c07968a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Wed, 14 Feb 2024 20:38:22 +0000 Subject: [PATCH] Fix margin issue on stats graphs --- statsgen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/statsgen.py b/statsgen.py index e7f0b9f..590c8a8 100644 --- a/statsgen.py +++ b/statsgen.py @@ -424,7 +424,7 @@ def yeargen(local=False): if exchangedict: byevent.append(exchangedict) byevent = sorted(byevent,key=lambda d: d["words"],reverse=True) - filewrite.write("

By type

\n\n\n\n\n\n\n\n\n\n") + filewrite.write("

By type

\n
Words per fic type
TypeWords
\n\n\n\n\n\n\n\n\n") for event in byevent: filewrite.write("\n\n
Words per fic type
TypeWords
" + event["type"] + "" + str(event["words"]) + "" + str(event["fics"]) + " fic") if event["fics"] > 1: @@ -474,7 +474,7 @@ def yeargen(local=False): filewrite.write("
  • " + str(ficsum(int(fic["ficno"]),year,local=local)) + "
  • ") filewrite.write("\n\n") else: - filewrite.write("\n\n\n\n\n\n\n\n\n") + filewrite.write("
    Words per event
    EventWords
    \n\n\n\n\n\n\n\n\n") for event in neweventslist: filewrite.write("\n
    Words per event
    EventWords
    ") if event["eventlocation"] == "dwcomm": @@ -509,7 +509,7 @@ def yeargen(local=False): for fic in ficdeets: fandomlist.extend(fic["fandom"]) fandomlist = sorted(list(dict.fromkeys(fandomlist))) - filewrite.write("\n

    By fandom

    \n\n\n\n\n\n\n\n\n\n") + filewrite.write("\n

    By fandom

    \n
    Words per fandom
    Fandom Words
    \n\n\n\n\n\n\n\n\n") fandomdeets = [] for fandom in fandomlist: fandomdict = {"name":fandom,"ficno":[],"words":0} @@ -530,7 +530,7 @@ def yeargen(local=False): for fic in fandom["ficno"]: filewrite.write("
  • " + str(ficsum(int(fic),year,showfandom=False,local=local)) + "
  • \n") filewrite.write("\n") - filewrite.write("\n

    By month

    \n
    Words per fandom
    Fandom Words
    \n\n\n\n\n\n\n\n") + filewrite.write("\n

    By month

    \n
    Words per month
    MonthWords
    \n\n\n\n\n\n\n\n") monthcombine = [] for fic in datesplit: # read the file back in to get the right word count, because dicts are dynamic somehow??
    Words per month
    MonthWords