mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 00:07:14 +03:00
Only update ship's cargo if 'Vessel' is 'Ship'
From 3.3 beta3
This commit is contained in:
parent
e93265c87a
commit
a706c7aa29
@ -489,7 +489,7 @@ class EDLogs(FileSystemEventHandler):
|
||||
else: # Promotion
|
||||
self.state['Engineers'][entry['Engineer']] = (entry['Rank'], entry.get('RankProgress', 0)) if 'Rank' in entry else entry['Progress']
|
||||
|
||||
elif entry['event'] == 'Cargo':
|
||||
elif entry['event'] == 'Cargo' and entry.get('Vessel') == 'Ship':
|
||||
self.state['Cargo'] = defaultdict(int)
|
||||
if 'Inventory' not in entry: # From 3.3 full Cargo event (after the first one) is written to a separate file
|
||||
with open(join(self.currentdir, 'Cargo.json'), 'rb') as h:
|
||||
|
Loading…
x
Reference in New Issue
Block a user