From 3f0346b2bb57a97f177a13ceb709629545a0d87c Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Thu, 10 Sep 2020 12:39:26 +0530 Subject: removed upload folder from config.ini --- app/__init__.py | 1 - app/views.py | 5 +++-- config.ini | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 1b2171c..dd2f7ff 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -9,7 +9,6 @@ DB_PORT = config['DATABASE']['PORT'] DB_USER = config['DATABASE']['USER'] DB_PASSWORD = config['DATABASE']['PASSWORD'] DB_NAME = config['DATABASE']['NAME'] -UPLOAD_FOLDER = config['FILES']['UPLOAD_FOLDER'] LOG_FOLDER = config['FILES']['LOG_FOLDER'] INSTANT_EXEC = config['EXECUTION']['INSTANT'] LSTM = config['FEATURES']['LSTM'] diff --git a/app/views.py b/app/views.py index c272e73..698d621 100644 --- a/app/views.py +++ b/app/views.py @@ -127,8 +127,8 @@ def status(): done="Queued" if protein_name == None: protein_name = r[6] - - PDFReport = "/static/uploads/reports/" + str(jobID) + ".pdf" + + PDFReport = "./app/static/uploads/reports/" + str(jobID) + ".pdf" AndroidModel = "/static/uploads/3DModels/" + str(jobID) + ".gltf" iOSModel = "/static/uploads/3DModels/" + str(jobID) + ".usdz" @@ -247,6 +247,7 @@ def generate_pdbqts(): return render_template('pdbqt_form.html',form=myform) +tfWorking = 0 if app.config['LSTM']: try: import tensorflow as tf diff --git a/config.ini b/config.ini index a735910..4bbd75a 100644 --- a/config.ini +++ b/config.ini @@ -16,7 +16,6 @@ LOG = True SAVE_LOGS = False [FILES] -UPLOAD_FOLDER = ./app/static/uploads LOG_FOLDER = ./app/logs/ [EXECUTION] -- cgit v1.2.3