X-Git-Url: http://dolda2000.com/gitweb/?p=fulbank.git;a=blobdiff_plain;f=fulbank%2Ffsb.py;fp=fulbank%2Ffsb.py;h=166b5f536c68aab46a37b0268fb015a75e68e379;hp=9e059c16a9dec34b9b35da746d2235a5e4bd9907;hb=04ce2557a4ab1447a3e17b541afb15cb83ce8854;hpb=a094b3b5d20430beee75635ada3be6b04ae5fb74 diff --git a/fulbank/fsb.py b/fulbank/fsb.py index 9e059c1..166b5f5 100644 --- a/fulbank/fsb.py +++ b/fulbank/fsb.py @@ -312,11 +312,12 @@ class session(object): @property def accounts(self): if self._accounts is None: - data = self._jreq("v5/engagement/overview") + txndata = self._jreq("v5/engagement/overview") + crddata = self._jreq("v5/card/creditcard") accounts = [] - for acct in resolve(data, ("transactionAccounts",)): + for acct in resolve(txndata, ("transactionAccounts",)): accounts.append(txnaccount(self, resolve(acct, ("id",)), acct)) - for acct in resolve(data, ("cardAccounts",)): + for acct in resolve(crddata, ("cardAccounts",)): accounts.append(cardaccount(self, resolve(acct, ("id",)), acct)) self._accounts = accounts return self._accounts