Commit 5590ab8a authored by delanoe's avatar delanoe

[CLEAN] removing code that is not used any more.

parent b874595e
...@@ -77,6 +77,12 @@ class Graph(APIView): ...@@ -77,6 +77,12 @@ class Graph(APIView):
accepted_field2 = ['ngrams', ] accepted_field2 = ['ngrams', ]
options = ['start', 'end', 'threshold', 'distance', 'cooc_id' ] options = ['start', 'end', 'threshold', 'distance', 'cooc_id' ]
return JsonHttpResponse({
'log': "Ceci est un message",
}, 400)
if field1 in accepted_field1 : if field1 in accepted_field1 :
if field2 in accepted_field2 : if field2 in accepted_field2 :
if start is not None and end is not None : if start is not None and end is not None :
......
...@@ -25,9 +25,6 @@ def explorer(request, project_id, corpus_id): ...@@ -25,9 +25,6 @@ def explorer(request, project_id, corpus_id):
# and the project just for project.id in corpusBannerTop # and the project just for project.id in corpusBannerTop
project = cache.Node[project_id] project = cache.Node[project_id]
#graphurl = "projects/" + str(project_id) + "/corpora/" + str(corpus_id) + "graph?cooc_id=102560"
graphurl = "projects/" + str(project_id) + "/corpora/" + str(corpus_id) + "/node_link.json"
# rendered page : explorer.html # rendered page : explorer.html
return render( return render(
template_name = 'graphExplorer/explorer.html', template_name = 'graphExplorer/explorer.html',
...@@ -40,7 +37,6 @@ def explorer(request, project_id, corpus_id): ...@@ -40,7 +37,6 @@ def explorer(request, project_id, corpus_id):
'project' : project , 'project' : project ,
'corpus' : corpus , 'corpus' : corpus ,
'maplist_id': maplist_id , 'maplist_id': maplist_id ,
'graphurl' : graphurl ,
'view' : 'graph' , 'view' : 'graph' ,
}, },
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment