Commit 49f7122f authored by Romain Loth's avatar Romain Loth

fix: 'resourcename is not defined' error in My Graphs (via patch)

parent 323e3d9d
......@@ -57,7 +57,7 @@ def myGraphs(request, project_id, corpus_id):
project = cache.Node[project_id]
coocs = corpus.children('COOCCURRENCES', order=True).all()
coocs_count = dict()
for cooc in coocs:
cooc_nodes = session.query(NodeNgramNgram).filter(NodeNgramNgram.node_id==cooc.id).count()
......@@ -72,11 +72,10 @@ def myGraphs(request, project_id, corpus_id):
'user' : request.user,
'date' : datetime.now(),
'project' : project,
'resourcename' : resourcename(corpus),
'resourcename' : get_resource_by_name(corpus),
'corpus' : corpus,
'view' : 'myGraph',
'coocs' : coocs,
'coocs_count' : coocs_count
},
)
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