1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

monitor: Minor cleanup on 'Location'->'Docked' handling

* All my recent Location events *have* the 'Docked' flag.
* If any don't, then just use a default on .get() to set it False.
This commit is contained in:
Athanasius 2023-01-03 15:34:11 +00:00
parent 0177fc4d69
commit e3254aec31
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -863,8 +863,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
if event_type == 'location':
logger.trace_if('journal.locations', '"Location" event')
if entry.get('Docked'):
self.state['IsDocked'] = True
self.state['IsDocked'] = entry.get('Docked', False)
elif event_type == 'fsdjump':
self.state['Body'] = None