Remove some comments
This commit is contained in:
parent
c0dc41a63a
commit
a49459da6d
|
@ -134,14 +134,6 @@ class NordigenClient(BaseClient):
|
||||||
if "bban" in parsed and parsed["currency"] == "GBP":
|
if "bban" in parsed and parsed["currency"] == "GBP":
|
||||||
sort_code = parsed["bban"][0:6]
|
sort_code = parsed["bban"][0:6]
|
||||||
account_number = parsed["bban"][6:]
|
account_number = parsed["bban"][6:]
|
||||||
# if "ownerName" not in parsed:
|
|
||||||
# ownernames = self.get_ownernames()
|
|
||||||
# if account_id in ownernames:
|
|
||||||
# parsed["ownerName"] = ownernames[account_id]
|
|
||||||
|
|
||||||
# else:
|
|
||||||
# return False
|
|
||||||
# recipient = parsed["ownerName"]
|
|
||||||
del parsed["bban"]
|
del parsed["bban"]
|
||||||
if "iban" in parsed:
|
if "iban" in parsed:
|
||||||
del parsed["iban"]
|
del parsed["iban"]
|
||||||
|
@ -151,25 +143,18 @@ class NordigenClient(BaseClient):
|
||||||
parsed["recipient"] = "TODO"
|
parsed["recipient"] = "TODO"
|
||||||
# Let's add the account ID so we can reference it later
|
# Let's add the account ID so we can reference it later
|
||||||
parsed["account_id"] = account_id
|
parsed["account_id"] = account_id
|
||||||
print("PARSED", parsed)
|
|
||||||
return parsed
|
return parsed
|
||||||
|
|
||||||
async def get_all_account_info(self, requisition=None):
|
async def get_all_account_info(self, requisition=None):
|
||||||
print("GET ALL ACCOU T INFO", requisition)
|
|
||||||
to_return = {}
|
to_return = {}
|
||||||
if not requisition:
|
if not requisition:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
# requisitions = await self.get_requisitions()
|
# requisitions = await self.get_requisitions()
|
||||||
else:
|
else:
|
||||||
requisitions = [await self.get_requisition(requisition)]
|
requisitions = [await self.get_requisition(requisition)]
|
||||||
print("REQUISITIONS", requisitions)
|
|
||||||
|
|
||||||
print("REQUISITIONS", requisitions)
|
|
||||||
|
|
||||||
for req in requisitions:
|
for req in requisitions:
|
||||||
print("REQ ITER", req)
|
|
||||||
accounts = req["accounts"]
|
accounts = req["accounts"]
|
||||||
print("ACCOUNTS", accounts)
|
|
||||||
for account_id in accounts:
|
for account_id in accounts:
|
||||||
account_info = await self.get_account(account_id)
|
account_info = await self.get_account(account_id)
|
||||||
if not account_info:
|
if not account_info:
|
||||||
|
|
Loading…
Reference in New Issue