Replace slashes with × in ship names like any good old-school weeb

master
trémeur 9 months ago
parent 6c8aa53383
commit afb4f2cbe4

@ -97,7 +97,7 @@ def feedgen(local=False):
except: except:
filewrite.write("/".join(origread.fandom)) filewrite.write("/".join(origread.fandom))
try: try:
filewrite.write(", " + origread.ship[0]) filewrite.write(", " + origread.ship[0].replace("/"," × "))
except: except:
try: try:
filewrite.write(", " + ", ".join(origread.charpov)) filewrite.write(", " + ", ".join(origread.charpov))
@ -131,7 +131,7 @@ def feedgen(local=False):
except: except:
filewrite.write("/".join(thefile.fandom)) filewrite.write("/".join(thefile.fandom))
try: try:
filewrite.write(", " + thefile.ship[0]) filewrite.write(", " + thefile.ship[0].replace("/"," × "))
except: except:
try: try:
filewrite.write(", " + ", ".join(thefile.charpov)) filewrite.write(", " + ", ".join(thefile.charpov))

@ -91,7 +91,7 @@ def shiplist(local=False):
# write details element # write details element
output = "build/ff/ships/index.html" output = "build/ff/ships/index.html"
filewrite = open(output, "a") filewrite = open(output, "a")
filewrite.write("<details><summary><span class=\"character " + cssgame + "\">" + ship + "</span> ") filewrite.write("<details><summary><span class=\"character " + cssgame + "\">" + ship.replace("/"," × ") + "</span> ")
# write statistics # write statistics
if len(maincount) > 0: if len(maincount) > 0:
filewrite.write("<span class=\"main\"> main: " + str(len(maincount)) + "</span>") filewrite.write("<span class=\"main\"> main: " + str(len(maincount)) + "</span>")

@ -39,7 +39,7 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
if "OW" not in origfile.fandom: if "OW" not in origfile.fandom:
if "gen" not in origfile.genre: if "gen" not in origfile.genre:
try: try:
thechars = origfile.ship[0] thechars = origfile.ship[0].replace("/"," × ")
except: except:
chars = [] chars = []
try: try:
@ -74,7 +74,7 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False):
if "OW" not in fileread.fandom: if "OW" not in fileread.fandom:
if "gen" not in fileread.genre: if "gen" not in fileread.genre:
try: try:
thechars = fileread.ship[0] thechars = fileread.ship[0].replace("/"," × ")
except: except:
chars = [] chars = []
try: try:

Loading…
Cancel
Save