File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -430,6 +430,7 @@ def isIgnored(file, row):
430
430
attr .max = attrData ['max' ]
431
431
eos .db .gamedata_session .add (attr )
432
432
433
+ # Add schema version to prevent further updates
433
434
metadata_schema_version = eos .gamedata .MetaData ()
434
435
metadata_schema_version .field_name = 'schema_version'
435
436
metadata_schema_version .field_value = GAMEDATA_SCHEMA_VERSION
@@ -440,12 +441,11 @@ def isIgnored(file, row):
440
441
# CCP still has 5 subsystems assigned to T3Cs, even though only 4 are available / usable. They probably have some
441
442
# old legacy requirement or assumption that makes it difficult for them to change this value in the data. But for
442
443
# pyfa, we can do it here as a post-processing step
443
- eos .db .gamedata_engine .execute ('UPDATE dgmtypeattribs SET value = 4.0 WHERE attributeID = ?' , (1367 ,))
444
+ for attr in eos .db .gamedata_session .query (eos .gamedata .Attribute ).filter (eos .gamedata .Attribute .ID == 1367 ).all ():
445
+ attr .value = 4.0
446
+ for item in eos .db .gamedata_session .query (eos .gamedata .Item ).filter (eos .gamedata .Item .name .like ('%abyssal%' )).all ():
447
+ item .published = False
444
448
445
- eos .db .gamedata_engine .execute ('UPDATE invtypes SET published = 0 WHERE typeName LIKE \' %abyssal%\' ' )
446
-
447
-
448
- print ()
449
449
for x in [
450
450
30 # Apparel
451
451
]:
You can’t perform that action at this time.
0 commit comments