1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-20 10:57:37 +03:00

monitor.state: Group all Odyssey, and add other ShipLocker categories

This commit is contained in:
Athanasius 2021-04-05 09:18:26 +01:00
parent c4df5b2822
commit ad677d73f6

View File

@ -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