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:
parent
e2a5668424
commit
f0cad753fc
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user