Update icons and EVE data

This commit is contained in:
blitzmann
2015-12-09 21:56:22 -05:00
parent 290f7d116f
commit 753ba00ac0
40 changed files with 10 additions and 1 deletions

View File

@@ -30,14 +30,16 @@ cursor = db.cursor()
ICON_SIZE = (16, 16)
ITEM_CATEGORIES = (
2, # Celestial
6, # Ship
7, # Module
8, # Charge
16, # Skill
18, # Drone
20, # Implant
32 # Subsystem
32 # Subsystem
)
MARKET_ROOTS = {
9, # Modules
1111, # Rigs

View File

@@ -20,6 +20,7 @@
import os
import sys
import re
# Add eos root path to sys.path so we can import ourselves
path = os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
@@ -194,6 +195,12 @@ def main(db, json_path):
# fix for issue 80
if jsonName is "icons" and "res:/ui/texture/icons/" in str(row["iconFile"]).lower():
row["iconFile"] = row["iconFile"].lower().replace("res:/ui/texture/icons/", "").replace(".png", "")
# with res:/ui... references, it points to the actual icon file (including it's size variation of #_size_#)
# strip this info out and get the identifying info
split = row['iconFile'].split('_')
if len(split) == 3:
row['iconFile'] = "{}_{}".format(split[0], split[2])
for k, v in row.iteritems():
setattr(instance, fieldMap.get(k, k), v)