Skip to content

Commit

Permalink
Include calls_left variable in msg_between_calls, closes tfrce#22
Browse files Browse the repository at this point in the history
  • Loading branch information
jlev committed Mar 10, 2017
1 parent 1106d2a commit 62879ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion call_server/call/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,10 @@ def complete():
else:
# call the next target
params['call_index'] = i + 1 # increment the call counter
calls_left = len(params['targetIds']) - i - 1

play_or_say(resp, campaign.audio('msg_between_calls'))
play_or_say(resp, campaign.audio('msg_between_calls'),
calls_left=calls_left)

resp.redirect(url_for('call.make_single', **params))

Expand Down
2 changes: 1 addition & 1 deletion instance/campaign_msg_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ msg_call_block_intro: >
star for the next call.{{/many}}
msg_target_intro: We're now connecting you to {{title}} {{name}}
msg_target_busy: Sorry, {{title}} {{name}} is busy right now. Please try again later.
msg_between_calls: You're doing great - here's the next call.
msg_between_calls: You're doing great, only {{calls_left}} more to go. Here's the next call.
msg_final_thanks: Thank you!

0 comments on commit 62879ea

Please sign in to comment.