mirror of
https://github.com/ilri/csv-metadata-quality-web.git
synced 2024-11-29 18:08:23 +01:00
Add route for processing the input file
This commit is contained in:
parent
207d5af64a
commit
0136d99046
9
main.py
9
main.py
@ -27,7 +27,14 @@ def upload_file():
|
||||
|
||||
uploaded_file.save(os.path.join(app.config["UPLOAD_PATH"], filename))
|
||||
|
||||
return redirect(url_for("index"))
|
||||
return redirect(url_for("process_file", filename=filename))
|
||||
|
||||
return "No file selected"
|
||||
|
||||
|
||||
@app.route("/process/<filename>")
|
||||
def process_file(filename):
|
||||
return render_template("process.html", cli_version=cli_version, filename=filename)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
14
templates/process.html
Normal file
14
templates/process.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="h-100">
|
||||
{% include 'head.html' %}
|
||||
<body class="d-flex flex-column h-100">
|
||||
<main class="flex-shrink-0">
|
||||
<div class="container">
|
||||
<h1 class="mt-5 fs-2">DSpace CSV Metadata Quality Checker</h1>
|
||||
<p>Processing {{ filename }}</p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{% include 'footer.html' %}
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user