diff options
author | gunturkunhakan | 2021-07-01 22:19:19 -0500 |
---|---|---|
committer | gunturkunhakan | 2021-07-01 22:19:19 -0500 |
commit | 07646071d7bac3547c686fe189487e06e9947d9e (patch) | |
tree | 67f53d0533bc4a0a7dd66d21c1c3f89bf8c28226 /server.py | |
parent | c08a7a39a6703422e94c6217fd8b19403f6010ab (diff) | |
download | genecup-07646071d7bac3547c686fe189487e06e9947d9e.tar.gz |
fixed a bug
Diffstat (limited to 'server.py')
-rwxr-xr-x | server.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -569,7 +569,11 @@ def ontoarchive(): if ('email' in session): if os.path.exists(datadir+"/user/"+str(session['hashed_email'])+"/ontology") == False: flash("Ontology history doesn't exist!") - return render_template('index.html',onto_len_dir=session['onto_len_dir'], onto_list=session['onto_list']) + onto_len_dir = 0 + onto_list = '' + onto_cont=open("addiction.onto","r").read() + dict_onto=ast.literal_eval(onto_cont) + return render_template('index.html',onto_len_dir=onto_len_dir, onto_list=onto_list, ontol = 'addiction', dict_onto = dict_onto) else: session['user_folder'] = datadir+"/user/"+str(session['hashed_email']) else: |