diff --git a/app/app.db b/app/app.db index 58f49d5..02b0c3c 100644 Binary files a/app/app.db and b/app/app.db differ diff --git a/app/main.py b/app/main.py index 31fc48e..dbcb5b2 100644 --- a/app/main.py +++ b/app/main.py @@ -1,8 +1,10 @@ import os +import dotenv from benchmark.utils import Files from flask import ( Blueprint, render_template, + current_app, url_for, flash, redirect, @@ -56,7 +58,10 @@ def set_benchmark(benchmark_id): @main.route("/config") @login_required def config(): - return render_template("config.html") + os.chdir(current_user.benchmark.folder) + env = dotenv.dotenv_values(".env") + print(env) + return render_template("config.html", config_env=env) @main.route("/login", methods=["GET", "POST"]) diff --git a/app/templates/config.html b/app/templates/config.html index 2be1d76..cc03cd6 100644 --- a/app/templates/config.html +++ b/app/templates/config.html @@ -1,5 +1,22 @@ {% extends "base.html" %} {% block content %} -
Welcome to the home page!
+Key | +Value | +
---|---|
{{ item }} | +{{ value }} | +