Added indentation into exported json files

This commit is contained in:
StNicolay 2023-01-05 13:02:50 +03:00
parent 3edeb86b6c
commit 4954f39a91

View File

@ -35,7 +35,7 @@ class _Accounts(pydantic.BaseModel):
def _accounts_list_to_json(accounts: Iterable[DecryptedAccount]) -> str:
result = _Accounts(
accounts=[_Account.from_usual_account(i) for i in accounts],
).json(ensure_ascii=False)
).json(ensure_ascii=False, indent=2)
return result