From ac02fba98b7afc6d440b252fa4644b8486632a70 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 30 Oct 2019 15:18:08 +0300 Subject: [PATCH] Move useless category IDs closer to context --- db_update.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/db_update.py b/db_update.py index a44ba2064..fadfa9ef9 100644 --- a/db_update.py +++ b/db_update.py @@ -35,11 +35,6 @@ if ROOT_DIR not in sys.path: GAMEDATA_SCHEMA_VERSION = 1 -CATEGORIES_TO_REMOVE = [ - 30 # Apparel -] - - def db_needs_update(): """True if needs, false if it does not, none if we cannot check it.""" try: @@ -446,7 +441,9 @@ def update_db(): print() - for x in CATEGORIES_TO_REMOVE: + for x in [ + 30 # Apparel + ]: cat = eos.db.gamedata_session.query(eos.gamedata.Category).filter(eos.gamedata.Category.ID == x).first() print ('Removing Category: {}'.format(cat.name)) eos.db.gamedata_session.delete(cat)