1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

Sort saved station data.

This commit is contained in:
Jonathan Harris 2015-06-15 16:10:20 +01:00
parent e2a5668424
commit f0cad753fc

View File

@ -136,7 +136,7 @@ class Session:
# Recording
if __debug__:
with open('%s.%s.%s.json' % (data['lastSystem']['name'].strip(), data['lastStarport']['name'].strip(), time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime())), 'wt') as h:
h.write(json.dumps(data, indent=2))
h.write(json.dumps(data, indent=2, sort_keys=True))
return self.fixup(data)