If in debug, publish ship mode items (makes it easy to find in market and look at stats).

Tweak effectsUsedBy.py to publish all modes in group rather than individually listing them.
This commit is contained in:
blitzmann
2015-02-03 14:14:45 -05:00
parent c861adc5ed
commit 3a26790109
2 changed files with 13 additions and 4 deletions

View File

@@ -135,13 +135,12 @@ db = sqlite3.connect(os.path.expanduser(options.database))
cursor = db.cursor()
# Force some of the items to make them published
FORCEPUB_TYPES = ("Ibis", "Impairor", "Velator", "Reaper",
"Amarr Tactical Destroyer Propulsion Mode",
"Amarr Tactical Destroyer Sharpshooter Mode",
"Amarr Tactical Destroyer Defense Mode")
FORCEPUB_TYPES = ("Ibis", "Impairor", "Velator", "Reaper")
OVERRIDES_TYPEPUB = 'UPDATE invtypes SET published = 1 WHERE typeName = ?'
for typename in FORCEPUB_TYPES:
cursor.execute(OVERRIDES_TYPEPUB, (typename,))
# Publish t3 Dessy Modes
cursor.execute("UPDATE invtypes SET published = 1 WHERE groupID = ?", (1306,))
# Queries to get raw data
QUERY_ALLEFFECTS = 'SELECT effectID, effectName FROM dgmeffects'