1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

Correct Route to NavRoute in the code/comments as well

This commit is contained in:
Athanasius 2021-03-10 13:04:30 +00:00
parent 1ee2be8fc8
commit 0dc7c62fa8

@ -669,10 +669,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
self.state['Cargo'].update({self.canonicalise(x['Name']): x['Count'] for x in clean})
elif event_type == 'NavRoute':
# Added in ED 3.7 - multi-hop route details in Route.json
# Added in ED 3.7 - multi-hop route details in NavRoute.json
with open(join(self.currentdir, 'NavRoute.json'), 'rb') as rf: # type: ignore
entry = json.load(rf)
self.state['Route'] = entry
self.state['NavRoute'] = entry
elif event_type in ('CollectCargo', 'MarketBuy', 'BuyDrones', 'MiningRefined'):
commodity = self.canonicalise(entry['Type'])