diff --git a/rowers/braintreestuff.py b/rowers/braintreestuff.py index 9182a94d..45f08c85 100644 --- a/rowers/braintreestuff.py +++ b/rowers/braintreestuff.py @@ -385,6 +385,7 @@ def get_transactions(start_date,end_date): amounts = [] countries = [] + addresses = [] card_countries = [] names = [] emails = [] @@ -408,6 +409,10 @@ def get_transactions(start_date,end_date): if rs: r = rs[0] countries.append(r.country) + addresses.append('{street}, {city}, {postal_code}'.format( + street = r.street_address, + city = r.city, + postal_code = r.postal_code)) ownids.append(r.id) usernames.append(r.user.username) @@ -416,6 +421,7 @@ def get_transactions(start_date,end_date): transaction.credit_card_details.country_of_issuance) ownids.append('unknown') usernames.append('unknown') + addresses.append('') emails.append(transaction.customer_details.email) @@ -448,7 +454,8 @@ def get_transactions(start_date,end_date): 'user_id':ownids, 'customer_id':customerids, 'transaction_id':transactionids, - 'subscription_id':subscriptionids + 'subscription_id':subscriptionids, + 'address':addresses } ) diff --git a/rowers/tests/testdata/testdata.csv.gz b/rowers/tests/testdata/testdata.csv.gz index d895a3f1..4c5a20d0 100644 Binary files a/rowers/tests/testdata/testdata.csv.gz and b/rowers/tests/testdata/testdata.csv.gz differ diff --git a/rowers/views/statements.py b/rowers/views/statements.py index 5dd22c60..b3a0745f 100644 --- a/rowers/views/statements.py +++ b/rowers/views/statements.py @@ -101,7 +101,9 @@ from rowers.models import ( RowerPowerZonesForm,AccountRowerForm,UserForm,StrokeData, Team,TeamForm,TeamInviteForm,TeamInvite,TeamRequest, WorkoutComment,WorkoutCommentForm,RowerExportForm, - CalcAgePerformance,PowerTimeFitnessMetric,PlannedSessionForm, + CalcAgePerformance, + PowerTimeFitnessMetric, + PlannedSessionForm, PlannedSessionFormSmall,GeoCourseEditForm,VirtualRace, VirtualRaceForm,VirtualRaceResultForm,RowerImportExportForm, IndoorVirtualRaceResultForm,IndoorVirtualRaceResult,