This commit is contained in:
piair 2023-08-25 14:06:03 +02:00
parent 534b8f3367
commit 0516296499
2 changed files with 8 additions and 2 deletions

View File

@ -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))

View File

@ -39,6 +39,10 @@
{%if not current_user.is_authenticated %}
<h1>Already logged in</h1>
{% else %}
<embed type="text/html" src="https://piair.xyz/download/1.log">
{% for i in configs %}
<option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option>
{% endfor %}
{% endif %}
{% endblock %}