diff options
author | Frederick Muriuki Muriithi | 2022-04-28 09:50:58 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-28 09:50:58 +0300 |
commit | defc1cf0c1635f3262200a9ba25d8bd0c6fc0a93 (patch) | |
tree | 8f637c1890037d046b4d63ecb2b9ff582aa506bb /qc_app/entry.py | |
parent | aadd9aa5dd4c552b573828ddac581a8b7064b0e2 (diff) | |
download | gn-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.py | 2 |
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( |