diff --git a/Flask/app.py b/Flask/app.py index 1361192..99c24cf 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -364,7 +364,9 @@ def config_post(): @app.route("/logs/", methods=["GET", "POST"]) def logs(): - return(render_template("logs.html")) + with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile: + configs = json.load(inFile) + return(render_template("logs.html", data=configs)) diff --git a/Flask/templates/logs.html b/Flask/templates/logs.html index c2f173e..2b83100 100644 --- a/Flask/templates/logs.html +++ b/Flask/templates/logs.html @@ -39,6 +39,10 @@ {%if not current_user.is_authenticated %}

Already logged in

{% else %} - + +{% for i in configs %} + +{% endfor %} + {% endif %} {% endblock %} \ No newline at end of file