Skip to content

Commit

Permalink
changed url
Browse files Browse the repository at this point in the history
  • Loading branch information
ajermakovics committed Apr 22, 2012
1 parent 543da7c commit d8445cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/shout-twilio.py
Expand Up @@ -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) )

Expand All @@ -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)

Expand Down

0 comments on commit d8445cb

Please sign in to comment.