Make filaments searchable
This commit is contained in:
12
db_update.py
12
db_update.py
@@ -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 = []
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user