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 = []

View File

@@ -426,7 +426,15 @@ class Market:
"Structure",
"Structure Module",
)
self.SEARCH_GROUPS = ("Ice Product", "Cargo Container", "Secure Cargo Container", "Audit Log Secure Container", "Freight Container")
self.SEARCH_GROUPS = (
"Ice Product",
"Cargo Container",
"Secure Cargo Container",
"Audit Log Secure Container",
"Freight Container",
"Jump Filaments",
"Triglavian Space Filaments"
)
self.ROOT_MARKET_GROUPS = (9, # Ship Equipment
1111, # Rigs
157, # Drones