diff --git a/new.py b/new.py index 87aa12c..8953ede 100644 --- a/new.py +++ b/new.py @@ -107,6 +107,10 @@ while ficcount > 0: ficdict["summary"] = fileread.summary except: pass + try: + ficdict["extralink"] = fileread.extralink + except: + pass try: if fileread.eventname == "bethefirst": ficdict["event"] = "Be The First" @@ -254,6 +258,10 @@ while ficcount > 0: ficdict["comments"] = False except: ficdict["comments"] = False + try: + ficdict["comments"] = sorted(ficdict["comments"],key=lambda d: d["chapter"]) + except: + pass try: ficdict["cssoverride"] = fileread.cssoverride except: @@ -615,6 +623,10 @@ for fic in ficlist: ficpage.write(" version: " + stringno(fic["transid"]) + "") except: pass + try: + ficpage.write("\n
  • See here for additional notes.
  • ") + except: + pass allowcomments = False havecomments = False commentlink = False @@ -824,6 +836,10 @@ for fic in ficlist: elif fic["french"] == "translation": transpage.write("English") transpage.write(" version: " + stringno(fic["id"]) + "") + try: + transpage.write("\n
  • See here for additional notes.
  • ") + except: + pass allowcomments = False havecomments = False commentlink = False diff --git a/originals-template.py b/originals-template.py index 6530b10..ec700a0 100644 --- a/originals-template.py +++ b/originals-template.py @@ -17,6 +17,7 @@ fandom = [""] genre = [""] # ship category comes first, 1 more is displayed warnstring = 9000000000 # 9 is a dummy; then sex (0–3), death, mental health, bigotry, vomiting, consent, underage, incest, amputation (all others being 0–2) # summary = "" +# extralink = "" # event = "" # challenge (including fests; anything without a specific prompt), ao3exchange, exchange, prompt # eventname = "" # prompt = ""