Skip to content

Commit

Permalink
adding call to nationbuilder to make prospects into supporters
Browse files Browse the repository at this point in the history
  • Loading branch information
monaddle committed Oct 30, 2014
1 parent 36461a7 commit fc63a62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function SubscribeEmail(email) {
'email':email,
'dont_redirect':'true',
'source':'one-click subscribe',
'is_supporter': true
'is_supporter':'true'
}
$.ajax('/r/subscribe', {data:data, type:'POST'}).done(function() {
}).fail(function() {
Expand Down
1 change: 1 addition & 0 deletions backend/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def _subscribe_to_nationbuilder(email_to_subscribe, first_name, last_name,

if is_supporter:
person["is_supporter"] = True
person["is_prospect"] = False

if volunteer:
if volunteer == "Yes":
Expand Down

0 comments on commit fc63a62

Please sign in to comment.