From fafbbc80f5e7f5ca11499d1ad7ab09dda3d73df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Tue, 22 Oct 2024 12:32:32 +0100 Subject: [PATCH] Refine ficwip inclusion --- makeheader.py | 5 ++++- statsgen.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/makeheader.py b/makeheader.py index 1c61adb..36482ba 100644 --- a/makeheader.py +++ b/makeheader.py @@ -510,7 +510,10 @@ def ficgen(ficno,unique=False,output="output.html",local=False,single=False): elif fileread.eventname == "robotsoup": filewrite.write("Written for \"[personalkalloway’s " + fileread.eventdeets + " fest.") elif fileread.eventname == "#ficwip": - filewrite.write("Written for the #ficwip event " + fileread.eventdeets + ".") + filewrite.write("Written for the #ficwip event " + fileread.eventdeets + "") + if fileread.event == "prompt": + filewrite.write(", in response to prompt, " + fileread.prompt + "") + filewrite.write(".") try: if fileread.notes: filewrite.write(" ") diff --git a/statsgen.py b/statsgen.py index 1f743d8..7539e0b 100644 --- a/statsgen.py +++ b/statsgen.py @@ -481,6 +481,8 @@ def yeargen(local=False): filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") elif event["eventlocation"] == "ljjournal": filewrite.write("\"[personal" + (event["eventname"]).replace("-","_")+ "") + elif event["eventname"] == "#ficwip": + filewrite.write("#ficwip") else: filewrite.write(event["eventname"]) filewrite.write("\n" + str(event["words"]) + "" + str(len(event["ficno"])) + " fic")