aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorgunturkunhakan2021-07-01 22:19:19 -0500
committergunturkunhakan2021-07-01 22:19:19 -0500
commit07646071d7bac3547c686fe189487e06e9947d9e (patch)
tree67f53d0533bc4a0a7dd66d21c1c3f89bf8c28226 /server.py
parentc08a7a39a6703422e94c6217fd8b19403f6010ab (diff)
downloadgenecup-07646071d7bac3547c686fe189487e06e9947d9e.tar.gz
fixed a bug
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py6
1 files changed, 5 insertions, 1 deletions
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: