[Debug] Retains the downloaded jsons
on the json/ directory.
This commit is contained in:
parent
a364d7b46d
commit
9345530f06
@ -4,6 +4,7 @@ from requests import HTTPError, ReadTimeout
|
||||
from dotenv import load_dotenv
|
||||
from nordigen import NordigenClient
|
||||
from uuid import uuid4
|
||||
import json
|
||||
import os
|
||||
import webbrowser
|
||||
|
||||
@ -75,6 +76,9 @@ class NordigenInput(Input):
|
||||
print(f"Couldn't download transactions for {account}")
|
||||
continue
|
||||
|
||||
with open("json/" + bank.name + ".json", "w") as f:
|
||||
json.dump(downloaded, f)
|
||||
|
||||
converted = [
|
||||
convert(t, bank) for t in downloaded["transactions"]["booked"]
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user