From 051629649994bab7fca5a56531cd48b2af28d344 Mon Sep 17 00:00:00 2001 From: piair Date: Fri, 25 Aug 2023 14:06:03 +0200 Subject: [PATCH] okay --- Flask/app.py | 4 +++- Flask/templates/logs.html | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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