Permalink
Browse files

changed url

  • Loading branch information...
ajermakovics committed Apr 22, 2012
1 parent 543da7c commit d8445cbcdb4462ff06837acc1b544e5ac4f6ace3
Showing with 2 additions and 2 deletions.
  1. +2 −2 server/shout-twilio.py
View
@@ -71,7 +71,7 @@ def handle_recording():
if recording_url:
urllib.urlretrieve( recording_url, rec_file ) # download file localy
- sample_url = url_for('static', filename=filename)
+ sample_url = '/static/' + filename
samples[sample_id] = sample_url
push_to_pusher("twilio", str(sample_id), str(sample_url) )
@@ -96,7 +96,7 @@ def repush():
def handle_list():
ret = "{ samples: [\n"
for f in listdir("static"):
- ret = ret + url_for('static', filename=str(f)) + ", "
+ ret = ret + '/static' + str(f) + " , "
ret += "}"
return str(ret)

0 comments on commit d8445cb

Please sign in to comment.