Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
display full url / foo
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Nov 10, 2013
1 parent 01b95f5 commit ec218e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from django.http import HttpResponse,Http404

def list_notebooks(request):
response_data=[(nb[3],nb[2]) for nb in notebook.get_notebook_list("*.ipynb")]
import os
response_data=[('http://shogun-toolbox.org' + nb[3],os.path.basename(nb[2])) for nb in notebook.get_notebook_list(".ipynb")]
response=HttpResponse(json.dumps(response_data), content_type="application/json")
response['Access-Control-Allow-Origin']='*';
return response
Expand Down

0 comments on commit ec218e8

Please sign in to comment.