mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 01:22:19 +03:00
Remove last references to, and generation of, stations.p file.
This was historically used by the core EDDB plugin to construct a valid URL for a given station. EDDB has long-since provided alternate URL formats that negate the need for this. Plugin authors have been warned not to use this already.
This commit is contained in:
parent
180d5b0cb6
commit
09730adbe6
@ -218,9 +218,6 @@
|
||||
<Component Guid="*">
|
||||
<File KeyPath="yes" Source="SourceDir\sqlite3.dll" />
|
||||
</Component>
|
||||
<Component Guid="*">
|
||||
<File KeyPath="yes" Source="SourceDir\stations.p" />
|
||||
</Component>
|
||||
<Component Guid="*">
|
||||
<File KeyPath="yes" Source="SourceDir\systems.p" />
|
||||
</Component>
|
||||
@ -613,7 +610,6 @@
|
||||
<ComponentRef Id="snd_good.wav" />
|
||||
<ComponentRef Id="snd_bad.wav" />
|
||||
<ComponentRef Id="sqlite3.dll" />
|
||||
<ComponentRef Id="stations.p" />
|
||||
<ComponentRef Id="sv_SE.strings" />
|
||||
<ComponentRef Id="systems.p" />
|
||||
<ComponentRef Id="tcl86t.dll" />
|
||||
|
11
eddb.py
11
eddb.py
@ -114,14 +114,3 @@ if __name__ == "__main__":
|
||||
with open('systems.p', 'wb') as h:
|
||||
pickle.dump(system_ids, h, protocol = pickle.HIGHEST_PROTOCOL)
|
||||
print('\n%d saved systems' % len(system_ids))
|
||||
|
||||
# station_id by (system_id, station_name)
|
||||
stations = json.loads(download('stations.json').content) # let json do the utf-8 decode
|
||||
station_ids = {
|
||||
(x['system_id'], x['name']) : x['id'] # Pilgrim's Ruin in HR 3005 id 70972 has U+2019 quote
|
||||
for x in stations if x['max_landing_pad_size']
|
||||
}
|
||||
|
||||
with open('stations.p', 'wb') as h:
|
||||
pickle.dump(station_ids, h, protocol = pickle.HIGHEST_PROTOCOL)
|
||||
print('\n%d saved stations' % len(station_ids))
|
||||
|
2
setup.py
2
setup.py
@ -133,7 +133,6 @@ if sys.platform == 'darwin':
|
||||
'snd_bad.wav',
|
||||
'modules.p',
|
||||
'ships.p',
|
||||
'stations.p',
|
||||
'systems.p'
|
||||
],
|
||||
'site_packages': False,
|
||||
@ -195,7 +194,6 @@ elif sys.platform=='win32':
|
||||
'snd_bad.wav',
|
||||
'modules.p',
|
||||
'ships.p',
|
||||
'stations.p',
|
||||
'systems.p',
|
||||
'%s.VisualElementsManifest.xml' % APPNAME,
|
||||
'%s.ico' % APPNAME,
|
||||
|
Loading…
x
Reference in New Issue
Block a user