mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 16:27:13 +03:00
Synthesise default paintjob name to send to EDSM
This commit is contained in:
parent
374db8ae23
commit
68f0d10967
@ -372,7 +372,7 @@ class EDLogs(FileSystemEventHandler):
|
||||
self.state['ShipName'] = entry['ShipName']
|
||||
self.state['ShipType'] = self.canonicalise(entry['Ship'])
|
||||
# Ignore other Modules since they're missing Engineer modification details
|
||||
self.state['PaintJob'] = ''
|
||||
self.state['PaintJob'] = 'paintjob_%s_default_defaultpaintjob' % self.state['ShipType']
|
||||
for module in entry['Modules']:
|
||||
if module.get('Slot') == 'PaintJob' and module.get('Item'):
|
||||
self.state['PaintJob'] = self.canonicalise(module['Item'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user