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

EDDB: Use only state['SystemName'] for this.system_name tracking

This commit is contained in:
Athanasius 2023-01-09 15:20:21 +00:00
parent 86e81adb3d
commit dbad45cf3b
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -187,12 +187,6 @@ def journal_entry( # noqa: CCR001
this.system_address = state['SystemAddress']
this.system_name = state['SystemName']
# Always update our system address even if we're not currently the provider for system or station, but dont update
# on events that contain "future" data, such as FSDTarget
if entry['event'] in ('Location', 'Docked', 'CarrierJump', 'FSDJump'):
this.system_address = entry.get('SystemAddress') or this.system_address
this.system_name = entry.get('StarSystem') or this.system_name
# We need pop == 0 to set the value so as to clear 'x' in systems with
# no stations.
pop = entry.get('Population')