From ad677d73f6d2837438d99e39c1e999e40c9a90f3 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 5 Apr 2021 09:18:26 +0100 Subject: [PATCH] monitor.state: Group all Odyssey, and add other ShipLocker categories --- monitor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index 3967ff03..ccbc7bfb 100644 --- a/monitor.py +++ b/monitor.py @@ -122,7 +122,6 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below 'Raw': defaultdict(int), 'Manufactured': defaultdict(int), 'Encoded': defaultdict(int), - 'Component': defaultdict(int), # Odyssey materials 'Engineers': {}, 'Rank': {}, 'Reputation': {}, @@ -139,7 +138,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below 'Modules': None, 'CargoJSON': None, # The raw data from the last time cargo.json was read 'Route': None, # Last plotted route from Route.json file - 'OnFoot': False, # Whether we think you're on-foot + 'OnFoot': False, # Whether we think you're on-foot + 'Component': defaultdict(int), # Odyssey Components in Ship Locker + 'Items': defaultdict(int), # Odyssey Items in Ship Locker + 'Consumables': defaultdict(int), # Odyssey Consumables in Ship Locker } def start(self, root: 'tkinter.Tk') -> bool: # noqa: CCR001