Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Tweak the logic a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed May 28, 2015
1 parent eb22015 commit 8c34500
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@
p = p[0]

if p.braintree_customer_id is not None:
print("SKIPPING ALREADY MIGRATED ACCOUNT: {} {}".format(p.username, customer_id))
continue
if ExchangeRoute.from_network(p, 'braintree-cc'):
print("SKIPPING ALREADY MIGRATED ACCOUNT: {} {}".format(p.username, customer_id))
continue
if p.is_suspicious is True:
print("SKIPPING SUSPICIOUS ACCOUNT: {} {}".format(p.username, customer_id))
continue
Expand All @@ -67,8 +68,7 @@

if 0:
er = ExchangeRoute.insert(p, 'braintree-cc', card_id)
db.run( "UPDATE participants SET braintree_customer_id=%s, balanced_customer_href=null"
"WHERE username=%s"
db.run( "UPDATE participants SET braintree_customer_id=%s WHERE username=%s"
, (customer_id, p.username)
)

Expand Down

0 comments on commit 8c34500

Please sign in to comment.