mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-21 11:27:38 +03:00
Change EDDB system_url() to using by-name URL
This removes a use case for systems.p file
This commit is contained in:
parent
e35561c96e
commit
553c7980c1
@ -27,10 +27,7 @@ with open(join(config.respath, 'stations.p'), 'rb') as h:
|
||||
|
||||
# Main window clicks
|
||||
def system_url(system_name):
|
||||
if system_id(system_name):
|
||||
return 'https://eddb.io/system/%d' % system_id(system_name)
|
||||
else:
|
||||
return None
|
||||
return 'https://eddb.io/system/name/%s' % system_name
|
||||
|
||||
def station_url(system_name, station_name):
|
||||
if station_id(system_name, station_name):
|
||||
|
Loading…
x
Reference in New Issue
Block a user