1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-10 04:12:15 +03:00

eddb: Ensure system_name is quoted for URL

This commit is contained in:
Athanasius 2020-06-27 09:52:01 +01:00
parent 1a11202aea
commit 2df8610e42

View File

@ -8,6 +8,7 @@ import csv
import os import os
from os.path import join from os.path import join
import sys import sys
import urllib.parse
from config import config from config import config
@ -27,7 +28,7 @@ with open(join(config.respath, 'stations.p'), 'rb') as h:
# Main window clicks # Main window clicks
def system_url(system_name): def system_url(system_name):
return 'https://eddb.io/system/name/%s' % system_name return 'https://eddb.io/system/name/%s' % urllib.parse.quote(system_name)
def station_url(system_name, station_name): def station_url(system_name, station_name):