mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
EDMC: Fix -d file
export of CAPI data
This commit is contained in:
parent
332d4cf975
commit
f12b8be74c
2
EDMC.py
2
EDMC.py
@ -341,7 +341,7 @@ sys.path: {sys.path}'''
|
|||||||
# stuff we can do when not docked
|
# stuff we can do when not docked
|
||||||
if args.d:
|
if args.d:
|
||||||
logger.debug(f'Writing raw JSON data to "{args.d}"')
|
logger.debug(f'Writing raw JSON data to "{args.d}"')
|
||||||
out = json.dumps(data, ensure_ascii=False, indent=2, sort_keys=True, separators=(',', ': '))
|
out = json.dumps(dict(data), ensure_ascii=False, indent=2, sort_keys=True, separators=(',', ': '))
|
||||||
with open(args.d, 'wb') as f:
|
with open(args.d, 'wb') as f:
|
||||||
f.write(out.encode("utf-8"))
|
f.write(out.encode("utf-8"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user