From defc1cf0c1635f3262200a9ba25d8bd0c6fc0a93 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 28 Apr 2022 09:50:58 +0300 Subject: 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. --- qc_app/entry.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qc_app/entry.py') 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( -- cgit v1.2.3