more tweaks

This commit is contained in:
blitzmann
2020-06-25 22:06:57 -04:00
parent 03e29e02b1
commit be4f6241a9
3 changed files with 4 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ def update_db():
data = _readData('fsd_binary', 'dogmaattributes', keyIdName='attributeID')
map = {
'displayName_en-us': 'displayName',
'tooltipDescription_en-us': 'tooltipDescription'
# 'tooltipDescription_en-us': 'tooltipDescription'
}
_addRows(data, eos.gamedata.AttributeInfo, fieldMap=map)

View File

@@ -27,7 +27,7 @@ import eos.config
groups_table = Table("invgroups", gamedata_meta,
Column("groupID", Integer, primary_key=True),
*[Column("groupName{}".format(lang), String) for lang in eos.config.translation_mapping.values()],
Column("description", String), # deprecated
# Column("description", String), # deprecated
Column("published", Boolean),
Column("categoryID", Integer, ForeignKey("invcategories.categoryID")),
Column("iconID", Integer))
@@ -37,5 +37,5 @@ mapper(Group, groups_table,
"category" : relation(Category, backref=backref("groups", cascade="all,delete")),
"ID" : synonym("groupID"),
"name" : synonym("groupName{}".format(eos.config.lang)),
"description": deferred(groups_table.c.description) # deprecated
# "description": deferred(groups_table.c.description) # deprecated
})

View File

@@ -22,6 +22,7 @@ from sqlalchemy.orm import mapper, synonym
from eos.db import gamedata_meta
from eos.gamedata import Unit
import eos.config
groups_table = Table("dgmunits", gamedata_meta,
Column("unitID", Integer, primary_key=True),