Make filaments searchable

This commit is contained in:
DarkPhoenix
2021-02-19 20:36:11 +03:00
parent f07684875f
commit 961258618a
2 changed files with 20 additions and 2 deletions

View File

@@ -142,7 +142,17 @@ def update_db():
):
row['published'] = True
# Nearly useless and clutter search results too much
elif row['typeName_en-us'].startswith('Limited Synth '):
elif (
row['typeName_en-us'].startswith('Limited Synth ') or
row['typeName_en-us'].endswith(' Filament') and (
"'Needlejack'" not in row['typeName_en-us'] and
"'Devana'" not in row['typeName_en-us'] and
"'Pochven'" not in row['typeName_en-us'] and
"'Krai Veles'" not in row['typeName_en-us'] and
"'Krai Perun'" not in row['typeName_en-us'] and
"'Krai Svarog'" not in row['typeName_en-us']
)
):
row['published'] = False
newData = []