From afb4f2cbe45fdc833af122721bd89eda67e4d95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Fri, 29 Mar 2024 11:56:20 +0000 Subject: [PATCH] =?UTF-8?q?Replace=20slashes=20with=20=C3=97=20in=20ship?= =?UTF-8?q?=20names=20like=20any=20good=20old-school=20weeb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feed.py | 4 ++-- ships.py | 2 +- statsgen.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/feed.py b/feed.py index ccbc179..c2fd1d8 100644 --- a/feed.py +++ b/feed.py @@ -97,7 +97,7 @@ def feedgen(local=False): except: filewrite.write("/".join(origread.fandom)) try: - filewrite.write(", " + origread.ship[0]) + filewrite.write(", " + origread.ship[0].replace("/"," × ")) except: try: filewrite.write(", " + ", ".join(origread.charpov)) @@ -131,7 +131,7 @@ def feedgen(local=False): except: filewrite.write("/".join(thefile.fandom)) try: - filewrite.write(", " + thefile.ship[0]) + filewrite.write(", " + thefile.ship[0].replace("/"," × ")) except: try: filewrite.write(", " + ", ".join(thefile.charpov)) diff --git a/ships.py b/ships.py index 0b15b0e..eb0c5e7 100644 --- a/ships.py +++ b/ships.py @@ -91,7 +91,7 @@ def shiplist(local=False): # write details element output = "build/ff/ships/index.html" filewrite = open(output, "a") - filewrite.write("
" + ship + " ") + filewrite.write("
" + ship.replace("/"," × ") + " ") # write statistics if len(maincount) > 0: filewrite.write(" main: " + str(len(maincount)) + "") diff --git a/statsgen.py b/statsgen.py index 590c8a8..3313e3b 100644 --- a/statsgen.py +++ b/statsgen.py @@ -39,7 +39,7 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False): if "OW" not in origfile.fandom: if "gen" not in origfile.genre: try: - thechars = origfile.ship[0] + thechars = origfile.ship[0].replace("/"," × ") except: chars = [] try: @@ -74,7 +74,7 @@ def ficsum(ficcount,year,month=0,showfandom=True,local=False): if "OW" not in fileread.fandom: if "gen" not in fileread.genre: try: - thechars = fileread.ship[0] + thechars = fileread.ship[0].replace("/"," × ") except: chars = [] try: