1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 00:30:33 +03:00

Fixed taxi log

This commit is contained in:
A_D 2021-06-02 13:00:49 +02:00
parent 2a68b81170
commit 6a02b6efc7
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -705,7 +705,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
self.station = None
self.state['OnFoot'] = True
if self.state['Taxi'] is not None and not self.state['Taxi']:
if self.state['Taxi'] is not None and self.state['Taxi'] != entry.get('Taxi', False):
logger.warning('Disembarked from a taxi but we didn\'t know we were in a taxi?')
self.state['Taxi'] = False