mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 02:43:22 +03:00
Also wrap as dict(data) in dump_capi_data()
This commit is contained in:
parent
e475ad6659
commit
bc7767c5ce
@ -671,7 +671,7 @@ class AppWindow(object):
|
|||||||
|
|
||||||
timestamp = strftime('%Y-%m-%dT%H.%M.%S', localtime())
|
timestamp = strftime('%Y-%m-%dT%H.%M.%S', localtime())
|
||||||
with open(f'dump/{system}{station}.{timestamp}.json', 'wb') as h:
|
with open(f'dump/{system}{station}.{timestamp}.json', 'wb') as h:
|
||||||
h.write(json.dumps(data,
|
h.write(json.dumps(dict(data),
|
||||||
ensure_ascii=False,
|
ensure_ascii=False,
|
||||||
indent=2,
|
indent=2,
|
||||||
sort_keys=True,
|
sort_keys=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user