Permalink
Browse files

Update callcenter.py to use correct parameter name

AvgQueueTime not AverageQueueTime
  • Loading branch information...
1 parent 726227e commit 04079d45d15a76983be52bfdd5df2bd52d9fcf8a Kevin Burke committed Oct 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 callcenter.py
View
@@ -36,7 +36,7 @@ def get(self):
messages = [
"You are number %s in line." % self.request.get('QueuePosition'),
"You've been in line for %s seconds." % self.request.get('QueueTime'),
- "Average wait time is %s seconds." % self.request.get('AverageQueueTime'),
+ "Average wait time is %s seconds." % self.request.get('AvgQueueTime'),
]
for message in messages:
@@ -139,7 +139,7 @@ def post(self):
sid = self.request.params.get('sid')
if sid == '':
- return
+ return
call = client.calls.get(sid)
call.redirect('/twiml/boss')

0 comments on commit 04079d4

Please sign in to comment.