From 07646071d7bac3547c686fe189487e06e9947d9e Mon Sep 17 00:00:00 2001 From: gunturkunhakan Date: Thu, 1 Jul 2021 22:19:19 -0500 Subject: fixed a bug --- server.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 1d5f2ce..33f3bb0 100755 --- a/server.py +++ b/server.py @@ -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: -- cgit v1.2.3