From 49b2e42d8ce736df1621f8d69e52bf60bc31a9fd Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 9 Jul 2017 12:17:07 -0400 Subject: [PATCH] Fix subsystem count, requires post processing of data from CCP when building the database... this may be fixed by the time it releases, but maybe not, and I don't want to forget about it --- scripts/jsonToSql.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/jsonToSql.py b/scripts/jsonToSql.py index ad263df4b..8cdc0999d 100755 --- a/scripts/jsonToSql.py +++ b/scripts/jsonToSql.py @@ -243,6 +243,11 @@ def main(db, json_path): eos.db.gamedata_session.commit() + # CCP still has 5 subsystems assigned to T3Cs, even though only 4 are available / usable. They probably have some + # old legacy requirement or assumption that makes it difficult for them to change this value in the data. But for + # pyfa, we can do it here as a post-processing step + eos.db.gamedata_engine.execute("UPDATE dgmtypeattribs SET value = 4.0 WHERE attributeID = ?", (1367,)) + print("done") if __name__ == "__main__":