mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-11 04:42:23 +03:00
Handle non-ASCII station names
This commit is contained in:
parent
09de1adc91
commit
7fe08f61b3
2
eddb.py
2
eddb.py
@ -107,7 +107,7 @@ if __name__ == "__main__":
|
|||||||
# station_id by (system_id, station_name)
|
# station_id by (system_id, station_name)
|
||||||
stations = json.loads(download('stations.json').content) # let json do the utf-8 decode
|
stations = json.loads(download('stations.json').content) # let json do the utf-8 decode
|
||||||
station_ids = {
|
station_ids = {
|
||||||
(x['system_id'], str(x['name'])) : x['id']
|
(x['system_id'], x['name'].encode('utf-8')) : x['id'] # Pilgrim's Ruin in HR 3005 id 70972 has U+2019 quote
|
||||||
for x in stations if x['max_landing_pad_size']
|
for x in stations if x['max_landing_pad_size']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
stations.p
BIN
stations.p
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user