From bc7767c5ce72d64a086c1d2ac231b06caf7255a7 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 15 Mar 2021 17:25:36 +0000 Subject: [PATCH] Also wrap as dict(data) in dump_capi_data() --- EDMarketConnector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 280c2b2a..233c9d22 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -671,7 +671,7 @@ class AppWindow(object): timestamp = strftime('%Y-%m-%dT%H.%M.%S', localtime()) 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, indent=2, sort_keys=True,