1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

CAPI loadouts changed from dict to list

This commit is contained in:
A_D 2021-04-16 17:11:05 +02:00
parent f95a258597
commit 98c946fa31
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -903,7 +903,7 @@ class AppWindow(object):
if (suit := loadout.get('suit')) is not None:
if (suitname := suit.get('locName')) is not None:
# We've been paranoid about loadout->suit->suitname, now just assume loadouts is there
loadout_name = data['loadouts'][f"{loadout['loadoutSlotId']}"]['name']
loadout_name = data['loadouts'][loadout['loadoutSlotId']]['name']
self.suit['text'] = f'{suitname} ({loadout_name})'
self.toggle_suit_row(visible=True)