From 961258618acb68d7afd2b6ea5c4156cf4795b616 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 19 Feb 2021 20:36:11 +0300 Subject: [PATCH] Make filaments searchable --- db_update.py | 12 +++++++++++- service/market.py | 10 +++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/db_update.py b/db_update.py index 8ae20dc01..20592ce60 100644 --- a/db_update.py +++ b/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 = [] diff --git a/service/market.py b/service/market.py index f8440326a..e49282da0 100644 --- a/service/market.py +++ b/service/market.py @@ -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