aboutsummaryrefslogtreecommitdiff
path: root/app/views.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-09-17 00:01:58 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-09-17 00:01:58 +0530
commit8ec4944df451e39a289b8f679edc8a9096299c0f (patch)
treeac0f1b7fa83ab3f1af7d8e431bef9a84e8f491b6 /app/views.py
parentd20017680bf6e8dfd2e4bcd69654a545f9a8350c (diff)
refactored names for docking
Diffstat (limited to 'app/views.py')
-rw-r--r--app/views.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views.py b/app/views.py
index fc1620b..7fe1daa 100644
--- a/app/views.py
+++ b/app/views.py
@@ -273,8 +273,8 @@ def generate():
return render_template('generate.html',expName=j["exp_name"],epochs=j["num_epochs"],optimizer=j["optimizer"].capitalize(), form=form)
-@app.route('/Dock', methods=['GET', 'POST'])
-def dock_upload():
+@app.route('/Dock-Manual', methods=['GET', 'POST'])
+def dock_manual():
form = curieForm()
if request.method == 'POST' and form.validate_on_submit():
@@ -317,10 +317,10 @@ def dock_upload():
return render_template('display_result.html', filename="OwO", description=description,job=jobID)
flash_errors(form)
- return render_template('dock_upload.html', form=form)
+ return render_template('dock_manual.html', form=form)
-@app.route('/Dock-Single', methods=['GET', 'POST'])
-def dock_upload_single():
+@app.route('/Dock-Automatic', methods=['GET', 'POST'])
+def dock_automatic():
form = dockSingleForm()
if request.method == 'POST' and form.validate_on_submit():
@@ -354,7 +354,7 @@ def dock_upload_single():
return render_template('display_result.html', filename="OwO", description=description,job=jobID)
flash_errors(form)
- return render_template('dock_upload_single.html', form=form)
+ return render_template('dock_automatic.html', form=form)
###
# The functions below should be applicable to all Flask apps.