Added indentation into exported json files
This commit is contained in:
parent
3edeb86b6c
commit
4954f39a91
@ -35,7 +35,7 @@ class _Accounts(pydantic.BaseModel):
|
|||||||
def _accounts_list_to_json(accounts: Iterable[DecryptedAccount]) -> str:
|
def _accounts_list_to_json(accounts: Iterable[DecryptedAccount]) -> str:
|
||||||
result = _Accounts(
|
result = _Accounts(
|
||||||
accounts=[_Account.from_usual_account(i) for i in accounts],
|
accounts=[_Account.from_usual_account(i) for i in accounts],
|
||||||
).json(ensure_ascii=False)
|
).json(ensure_ascii=False, indent=2)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user