Commit a1d82344 authored by delanoe's avatar delanoe

[FIX] asynchronous delete needs list or tuple as parameter

parent fc67ba82
......@@ -264,7 +264,7 @@ def get_cooc(request=None, corpus=None, cooc_id=None, type='node_link', size=siz
#edges_to_remove = [ e for e in G.edges_iter() if
degree = G.degree()
nodes_to_remove = [n for n in degree if degree[n] <=1]
nodes_to_remove = [n for n in degree if degree[n] <= 1]
G.remove_nodes_from(nodes_to_remove)
uG = G.to_undirected()
partition = best_partition(uG)
......
......@@ -430,7 +430,7 @@ def move_to_trash(node_id):
if DEBUG is False :
# TODO for the future maybe add id of node
empty_trash.apply_async("corpus_id")
empty_trash.apply_async([1,])
else:
empty_trash("corpus_id")
......
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