mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 00:30:33 +03:00
EDDB is default station provider, do station_marketid as needed
We need a better way to do provider defaults. Heck, settings defaults period. Let's assume we'll put in place a "standard" config file once we move to one.
This commit is contained in:
parent
6932fdc883
commit
317a0f6b63
@ -75,7 +75,8 @@ def cmdr_data(data, is_beta):
|
||||
this.system_address = data['lastSystem']['id']
|
||||
this.system_link['url'] = system_url(this.system_address) # Override standard URL function
|
||||
|
||||
if config.get('station_provider') == 'eddb':
|
||||
# 'eddb' is also the *default* Station provider
|
||||
if not config.get('station_provider') or config.get('station_provider') == 'eddb':
|
||||
# Only use CAPI value if not yet set
|
||||
# This is to avoid CAPI lagging causing incorrect value
|
||||
if not this.station_marketid:
|
||||
|
Loading…
x
Reference in New Issue
Block a user