From 6ed7590ba90929270831a89fc8a7dd7548807042 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 27 Jun 2020 10:39:32 +0100 Subject: [PATCH] Update eddb.station_marketid from CarrierJump as well This shouldn't actually be necessary, the marketid shouln't change because of a jump, and would have been picked up from the other events anyway, but it should do no harm to set it again from this. --- plugins/eddb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/eddb.py b/plugins/eddb.py index 9a11b0c2..2efce6dd 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -70,7 +70,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): this.system_link['url'] = system_url(system) # Override standard URL function if config.get('station_provider') == 'eddb': - if entry['event'] in ['Location', 'Docked', 'StartUp']: + if entry['event'] in ['StartUp', 'Location', 'Docked', 'CarrierJump']: this.station_marketid = entry.get('MarketID') elif entry['event'] in ['Undocked']: this.station_marketid = None @@ -80,7 +80,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): def cmdr_data(data, is_beta): if config.get('system_provider') == 'eddb': - this.system_link['url'] = system_url(data['lastSystem']['name']) # Override standard URL function + this.system_link['url'] = system_url(data['lastSystem']['name']) # Override standard URL function if config.get('station_provider') == 'eddb': this.station_marketid = data['commander']['docked'] and data['lastStarport']['id']