mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +03:00
Suits: Always set 'id' to None
Better to get a `None` value than a KeyError.
This commit is contained in:
parent
d27075cb38
commit
7b76e327ce
@ -1015,7 +1015,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
new_suit = {
|
||||
'name': entry['Name'],
|
||||
'locName': entry.get('Name_Localised', entry['Name']),
|
||||
# 'id': ???, # Is this an FDev ID for suit type ?
|
||||
'id': None, # Is this an FDev ID for suit type ?
|
||||
'suitId': entry['SuitID'],
|
||||
'slots': [],
|
||||
}
|
||||
@ -1698,7 +1698,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
|
||||
slots[s] = {
|
||||
'name': loadout_slots[s]['ModuleName'],
|
||||
# 'id': None, # FDevID ?
|
||||
'id': None, # FDevID ?
|
||||
'weaponrackId': loadout_slots[s]['SuitModuleID'],
|
||||
'locName': loadout_slots[s].get('ModuleName_Localised', loadout_slots[s]['ModuleName']),
|
||||
'locDescription': '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user