From 4f1d6fad387a74326b5d594f7379b528de84a447 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 11 Mar 2021 20:29:43 +0200 Subject: [PATCH] main.py: Import csv_metadata_quality Now I understand how I can use this, for example to print the vers- ion of the CLI tool in the HTML template. --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index d7b5578..32a8615 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ import os +from csv_metadata_quality.version import VERSION as cli_version from flask import Flask, abort, redirect, render_template, request, url_for from werkzeug.utils import secure_filename @@ -11,7 +12,7 @@ app.config["UPLOAD_PATH"] = "/tmp" @app.route("/") def index(): - return render_template("index.html") + return render_template("index.html", cli_version=cli_version) @app.route("/", methods=["POST"])