Skip to content

Commit

Permalink
Coerce phone number to a string for twiml
Browse files Browse the repository at this point in the history
  • Loading branch information
beaugunderson committed Jan 28, 2014
1 parent a67b7ad commit 7c019e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def make_single_call():
i = int(request.values.get('call_index', 0))
params['call_index'] = i
member = legislators.ix[params['repIds'][i]]
congress_phone = member['phone']
congress_phone = str(member['phone'])
full_name = unicode("{} {}".format(
member['firstname'], member['lastname']), 'utf8')

Expand All @@ -224,6 +224,8 @@ def make_single_call():
else:
play_or_say(resp, campaign['msg_rep_intro'], name=full_name)

print 'Dialing {} from make_single_call()'.format(congress_phone)

resp.dial(congress_phone, **dialing_config(params))

return str(resp)
Expand Down

0 comments on commit 7c019e6

Please sign in to comment.