mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Suits: Set edmcName in BuySuit
handling
This commit is contained in:
parent
43a7974da5
commit
e9e5352e37
@ -1135,10 +1135,12 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
|||||||
# alpha4 :
|
# alpha4 :
|
||||||
# { "timestamp":"2021-04-29T09:03:37Z", "event":"BuySuit", "Name":"UtilitySuit_Class1",
|
# { "timestamp":"2021-04-29T09:03:37Z", "event":"BuySuit", "Name":"UtilitySuit_Class1",
|
||||||
# "Name_Localised":"Maverick Suit", "Price":150000, "SuitID":1698364934364699 }
|
# "Name_Localised":"Maverick Suit", "Price":150000, "SuitID":1698364934364699 }
|
||||||
|
loc_name = entry.get('Name_Localised', entry['Name'])
|
||||||
self.state['Suits'][entry['SuitID']] = {
|
self.state['Suits'][entry['SuitID']] = {
|
||||||
'name': entry['Name'],
|
'name': entry['Name'],
|
||||||
'locName': entry.get('Name_Localised', entry['Name']),
|
'locName': loc_name,
|
||||||
'id': None, # Is this an FDev ID for suit type ?
|
'edmcName': self.suit_sane_name(loc_name),
|
||||||
|
'id': None, # Is this an FDev ID for suit type ?
|
||||||
'suitId': entry['SuitID'],
|
'suitId': entry['SuitID'],
|
||||||
'slots': [],
|
'slots': [],
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user