Add support for secondary ships with no main ship

This commit is contained in:
trémeur 2023-06-15 07:30:58 +01:00
parent 1957f92f2c
commit c10e39197c

View file

@ -35,6 +35,9 @@ def shiplist(local=False):
theships.extend(fileread.ship)
except:
pass
for ship in theships:
if ship == None:
theships.remove(ship)
theships = sorted(list(dict.fromkeys(theships)))
for ship in theships:
shipdict = {"pairing":ship,"game":(fffandoms.index(fandom) + 1)}