Skip to content

Instantly share code, notes, and snippets.

@SecurityForUs
Created September 30, 2012 02:17
Show Gist options
  • Save SecurityForUs/3805659 to your computer and use it in GitHub Desktop.
Save SecurityForUs/3805659 to your computer and use it in GitHub Desktop.
get all cards for one account
def testing(self, addr):
cards = None
try:
buyer = balanced.Account.query.filter(email_address=addr)[0]
cards = list(balanced.Card.query.filter(card_uri=buyer.cards_uri))
except:
pass
return cards
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment