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

monitor: Revert state['StarSystem'] addition, it's not needed.

We pass `monitor.system` in to `journal_entry()` anyway, so it doesn't need
to be separately in the passed `state`.
This commit is contained in:
Athanasius 2022-02-11 11:57:05 +00:00
parent 69580bf1fd
commit 46e914fcec
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -180,7 +180,6 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
'SuitLoadouts': {},
'Taxi': None, # True whenever we are _in_ a taxi. ie, this is reset on Disembark etc.
'Dropship': None, # Best effort as to whether or not the above taxi is a dropship.
'StarSystem': None, # Best effort name of current system.
'StarPos': None, # Best effort current system's galaxy position.
'Body': None,
'BodyType': None,
@ -811,13 +810,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
self.systempopulation = entry.get('Population')
if entry['StarSystem'] == 'ProvingGround':
to_set = 'CQC'
self.system = 'CQC'
else:
to_set = entry['StarSystem']
# EDDN plugin needs this in `state`
self.state['StarSystem'] = self.system = to_set
self.system = entry['StarSystem']
self.station = entry.get('StationName') # May be None
# If on foot in-station 'Docked' is false, but we have a