From eec87541da723543cfafe6f5b7cff1ec5774ba2e Mon Sep 17 00:00:00 2001 From: gunturkunhakan Date: Wed, 30 Jun 2021 23:23:58 -0500 Subject: fixed a bug in search --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server.py') diff --git a/server.py b/server.py index 142aaa9..1d5f2ce 100755 --- a/server.py +++ b/server.py @@ -851,6 +851,7 @@ def search(): yield "data:"+str(progress)+"\n\n" for gene in genes: abstracts_raw = getabstracts(gene,all_d) + #print(abstracts_raw) sentences_ls=[] for row in abstracts_raw.split("\n"): @@ -890,10 +891,11 @@ def search(): dict_onto=ast.literal_eval(onto_cont) #ky_d=undic(list(dict_onto[ky].values())) sent=gene_category(gene,ky,str(ky), sentences_ls, addiction_flag,dict_onto) - else: #ky_d=undic(list(dict_onto[ky].values())) + #print(sentences_ls) sent=gene_category(gene,ky,str(ky), sentences_ls, addiction_flag,dict_onto) + #print(sent) yield "data:"+str(progress)+"\n\n" geneEdges += generate_edges(sent, tf_name) -- cgit v1.2.3