mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-16 02:42:40 +03:00
Update stations database from eddb.
This commit is contained in:
1 parent
d14608ae40
commit
e50cd2b808
2 files changed
+2
-2
No files matched your search
@@ -35,14 +35,14 @@ class EDDB:
|
||||
return '.'
|
||||
|
||||
|
||||
# build system & station database from files systems.json and stations_lite.json from http://eddb.io/api
|
||||
# build system & station database from files systems.json and stations.json from http://eddb.io/api
|
||||
if __name__ == "__main__":
|
||||
import json
|
||||
|
||||
# system_name by system_id
|
||||
systems = dict([(x['id'], str(x['name'])) for x in json.loads(open('systems.json').read())])
|
||||
|
||||
stations = json.loads(open('stations_lite.json').read())
|
||||
stations = json.loads(open('stations.json').read())
|
||||
|
||||
# check that all populated systems have known coordinates
|
||||
coords = dict([(x['id'], x['x'] or x['y'] or x['z']) for x in json.loads(open('systems.json').read())])
|
||||
|
||||
BIN
Binary file not shown.
Reference in new issue
Block a user