Skip to content

Commit

Permalink
improve console_demo.py output and remove hard coded account id
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Melander committed Nov 14, 2017
1 parent 5bd5b1b commit 80111c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions console_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
def main():
session = FigoSession(DEMO_TOKEN)

# print out a list of accounts including its balance
for account in session.accounts:
print(account)
print(account.balance)
print(u' {}'.format(account.balance))
print(u' Transactions:')

for transaction in session.get_account(account.account_id).transactions:
print(u' {}'.format(transaction))

# print out the list of all transactions on a specific account
for transaction in session.get_account("A1.2").transactions:
print(transaction)

if __name__ == "__main__":
main()

0 comments on commit 80111c1

Please sign in to comment.