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

ShipLocker: Fix the all() generator

This commit is contained in:
Athanasius 2021-06-10 14:31:26 +01:00
parent 2353889ed2
commit e754568b28

@ -854,7 +854,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# written to a separate shiplocker.json file - other updates will just update that file and mention it
# has changed with an empty shiplocker event in the main journal.
if not all(entry.get(t, False) for t in ('Components', 'Consumables', 'Data', 'Items')):
if not all(t in entry for t in ('Components', 'Consumables', 'Data', 'Items')):
logger.trace('ShipLocker event is an empty one (missing at least one data type)')
# So attempt to load data from the most recent file instead
currentdir_path = pathlib.Path(str(self.currentdir))