mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-21 11:27:38 +03:00
plugins/inara.py: Add two TODOs
* Artie added a 'by-systemaddress' system lookup, use it. * This means we probably no longer need to update URLs in the inara_notify_location() function.
This commit is contained in:
parent
4da1ae331d
commit
bb28a4fa2f
@ -61,6 +61,7 @@ this.station = None
|
||||
|
||||
def system_url(system_name):
|
||||
if system_name:
|
||||
# TODO: Switch this to https://inara.cz/galaxy-starsystem/?search=3932277478106
|
||||
return requests.utils.requote_uri(f'https://inara.cz/galaxy-starsystem/?search={system_name}')
|
||||
return this.system
|
||||
|
||||
@ -896,6 +897,7 @@ def update_location(event=None):
|
||||
def inara_notify_location(eventData):
|
||||
this.system = eventData.get('starsystemInaraURL')
|
||||
if config.get('system_provider') == 'Inara':
|
||||
# TODO: Bother with this? Just use systemaddress URL version when we detect it
|
||||
this.system_link['url'] = this.system # Override standard URL function
|
||||
this.station = eventData.get('stationInaraURL')
|
||||
if config.get('station_provider') == 'Inara':
|
||||
|
Loading…
x
Reference in New Issue
Block a user