Correct Route to NavRoute in the code/comments as well

This commit is contained in:
Athanasius committed 2021-04-01 14:45:50 +01:00
1 parent 1ee2be8fc8
commit 0dc7c62fa8
1 file changed
+2 -2
+2 -2
View File
@@ -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'])