aboutsummaryrefslogtreecommitdiff
path: root/app/views.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-09-06 13:11:35 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-09-06 13:11:35 +0530
commitfa85cab1989bb91fbc87fe033f29ca51d25a3cab (patch)
tree61ffcbbd6fe82946c21e63d21ab23fef92b27550 /app/views.py
parenteea75e4271334c97182973635a34a93458d6b83a (diff)
parent83dd77a98d2db3ea47be9c7c5f250487b9d8a4ac (diff)
Merge branch 'master' of https://github.com/navanchauhan/Curie-Web
Diffstat (limited to 'app/views.py')
-rw-r--r--app/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views.py b/app/views.py
index 65dd4a9..86a01fd 100644
--- a/app/views.py
+++ b/app/views.py
@@ -222,7 +222,8 @@ def dock_upload():
mycon.commit()
print("Description",description)
-
+ cwd = os.path.join(os.getcwd(),"app")
+ subprocess.Popen(['python3', 'dock-docker.py'],cwd=cwd)
return render_template('display_result.html', filename="OwO", description=description,job=jobID)
flash_errors(form)