aboutsummaryrefslogtreecommitdiff
path: root/qc_app/entry.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-04-28 09:50:58 +0300
committerFrederick Muriuki Muriithi2022-04-28 09:50:58 +0300
commitdefc1cf0c1635f3262200a9ba25d8bd0c6fc0a93 (patch)
tree8f637c1890037d046b4d63ecb2b9ff582aa506bb /qc_app/entry.py
parentaadd9aa5dd4c552b573828ddac581a8b7064b0e2 (diff)
downloadgn-uploader-defc1cf0c1635f3262200a9ba25d8bd0c6fc0a93.tar.gz
Update queuing and display results of file parsing
* Make the 'worker' functions free from needing the application context by passing all the details they need as arguments. * Enable the display of parsing results.
Diffstat (limited to 'qc_app/entry.py')
-rw-r--r--qc_app/entry.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/qc_app/entry.py b/qc_app/entry.py
index 31d64ca..f91e59d 100644
--- a/qc_app/entry.py
+++ b/qc_app/entry.py
@@ -41,6 +41,8 @@ def upload_file():
filename = secure_filename(text_file.filename)
if not os.path.exists(app.config["UPLOAD_FOLDER"]):
os.mkdir(app.config["UPLOAD_FOLDER"])
+
+ filepath = os.path.join(app.config["UPLOAD_FOLDER"], filename)
text_file.save(os.path.join(app.config["UPLOAD_FOLDER"], filename))
return redirect(url_for(