Update database
This commit is contained in:
@@ -220,10 +220,20 @@ def main(db, json_path):
|
|||||||
typesNormalAttribs = {}
|
typesNormalAttribs = {}
|
||||||
typesSkillAttribs = {}
|
typesSkillAttribs = {}
|
||||||
for row in tables['dgmtypeattribs']:
|
for row in tables['dgmtypeattribs']:
|
||||||
# TODO: add attribute ignore stuff (like meta level) here
|
attributeID = row['attributeID']
|
||||||
typesAttribs = typesSkillAttribs if row['attributeID'] in skillReqAttribsFlat else typesNormalAttribs
|
if attributeID in skillReqAttribsFlat:
|
||||||
typeAttribs = typesAttribs.setdefault(row['typeID'], {})
|
typeSkillAttribs = typesSkillAttribs.setdefault(row['typeID'], {})
|
||||||
typeAttribs[row['attributeID']] = row['value']
|
typeSkillAttribs[row['attributeID']] = row['value']
|
||||||
|
# Ignore these attributes for comparison purposes
|
||||||
|
elif attributeID in (
|
||||||
|
422, # techLevel
|
||||||
|
633, # metaLevel
|
||||||
|
1692 # metaGroupID
|
||||||
|
):
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
typeNormalAttribs = typesNormalAttribs.setdefault(row['typeID'], {})
|
||||||
|
typeNormalAttribs[row['attributeID']] = row['value']
|
||||||
# Get data on skill requirements
|
# Get data on skill requirements
|
||||||
typesSkillReqs = {}
|
typesSkillReqs = {}
|
||||||
for typeID, typeAttribs in typesSkillAttribs.items():
|
for typeID, typeAttribs in typesSkillAttribs.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user