1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 01:22:19 +03:00

always update with journal data

This commit is contained in:
A_D 2021-07-07 11:02:11 +02:00
parent 4e7366bee0
commit 7c78b40090
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

@ -1667,11 +1667,14 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
suit = {
'edmcName': edmc_suitname,
'locName': suitname,
'suitId': entry['SuitID'],
'name': entry['SuitName'],
'mods': entry['SuitMods']
}
# Overwrite with latest data, just in case, as this can be from CAPI which may or may not have had
# all the data we wanted
suit['suitId'] = entry['SuitID']
suit['name'] = entry['SuitName']
suit['mods'] = entry['SuitMods']
suitloadout_slotid = self.suit_loadout_id_from_loadoutid(entry['LoadoutID'])
# Make the new loadout, in the CAPI format
new_loadout = {