Skip to content

Commit bfc36c0

Browse files
committed
updated modifier query
1 parent c72ceed commit bfc36c0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Launcher():
88

9-
version = '2025.02b261'
9+
version = '2025.02b270'
1010
__version__ = '2.0'
1111

1212
# holds the style of the app

src/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
)
5555
MODIFIER_QUERY = (
5656
WIKI_URL + 'Special:CargoExport?tables=Modifiers&fields=_pageName,modifier,type,stats,'
57-
'available,isunique,info&format=json&limit=1000'
57+
'available,isunique,isepic,info&format=json&limit=1000'
5858
)
5959

6060
EQUIPMENT_TYPES = {

src/datafunctions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,12 @@ def load_cargo_data(self, threaded_worker: ThreadObject):
229229
modifier['available'] = list()
230230
for mod_type in modifier['type']:
231231
try:
232-
epic = True if modifier['info'] == 'Epic Modifier' else False
232+
epic = bool(modifier['isepic'])
233233
self.cache.modifiers[EQUIPMENT_TYPES[mod_type]][modifier['modifier']] = {
234234
'stats': modifier['stats'],
235235
'available': modifier['available'],
236236
'epic': epic,
237-
'isunique': False if epic else bool(modifier['isunique'])
237+
'isunique': False if epic else bool(modifier['isunique']),
238238
}
239239
except KeyError:
240240
pass

0 commit comments

Comments
 (0)