1
0
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:
Jonathan Harris 2017-08-16 08:36:35 +01:00
parent 374db8ae23
commit 68f0d10967

View File

@ -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'])