Skip to content

Commit

Permalink
Update staticdata to 2006012 and update DB generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Feb 18, 2022
1 parent 8cd8792 commit 0e0d820
Show file tree
Hide file tree
Showing 18 changed files with 145,128 additions and 109,416 deletions.
6 changes: 3 additions & 3 deletions db_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _addRows(data, cls, fieldMap=None):

def processEveTypes():
print('processing evetypes')
data = _readData('fsd_lite', 'evetypes', keyIdName='typeID')
data = _readData('fsd_binary', 'types', keyIdName='typeID')
for row in data:
if (
# Apparently people really want Civilian modules available
Expand Down Expand Up @@ -183,15 +183,15 @@ def processEveTypes():

def processEveGroups():
print('processing evegroups')
data = _readData('fsd_lite', 'evegroups', keyIdName='groupID')
data = _readData('fsd_binary', 'groups', keyIdName='groupID')
map = {'groupName_en-us': 'name'}
map.update({'groupName'+v: 'name'+v for (k, v) in eos.config.translation_mapping.items() if k != 'en'})
_addRows(data, eos.gamedata.Group, fieldMap=map)
return data

def processEveCategories():
print('processing evecategories')
data = _readData('fsd_lite', 'evecategories', keyIdName='categoryID')
data = _readData('fsd_binary', 'categories', keyIdName='categoryID')
map = { 'categoryName_en-us': 'name' }
map.update({'categoryName'+v: 'name'+v for (k, v) in eos.config.translation_mapping.items() if k != 'en'})
_addRows(data, eos.gamedata.Category, fieldMap=map)
Expand Down
Loading

0 comments on commit 0e0d820

Please sign in to comment.