OMG C'est trop bie

This commit is contained in:
piair 2023-09-20 13:13:41 +02:00
parent f0447b2d1d
commit 424798c7f6
10 changed files with 19 additions and 38 deletions

View File

@ -134,7 +134,7 @@ def login():
login_user(user)
if password == "ChangeMe":
return(redirect('/change_password'))
return(redirect('/override'))
return(redirect('/schedule'))
else:
return abort(401)
else:
@ -175,7 +175,7 @@ def load_user(userid):
def main():
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
configs = json.load(inFile)
return(render_template("override.html", data=configs))
return(render_template("schedule.html", data=configs))
@app.route("/discord/")
@ -282,15 +282,15 @@ def proxy_post():
return(render_template("proxy.html", data=data, len=maxi(data)))
@app.route("/override/")
def override_get():
@app.route("/schedule/")
def schedule_get():
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
configs = json.load(inFile)
return(render_template("override.html", data=configs))
return(render_template("schedule.html", data=configs))
@app.route("/override/", methods=["post"])
def override_post():
@app.route("/schedule/", methods=["post"])
def schedule_post():
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
configs = json.load(inFile)
@ -308,7 +308,7 @@ def override_post():
with open("/app/MsRewards-Reborn/user_data/configs.json", "w") as inFile:
json.dump(configs, inFile)
update_jobs()
return(render_template("override.html", data=configs))
return(render_template("schedule.html", data=configs))
@app.route("/config/")
@ -369,8 +369,8 @@ def stats():
return(render_template("stats.html"))
@app.route("/dev_override/", methods=["GET", "POST"])
def real_override():
@app.route("/override/", methods=["GET", "POST"])
def override():
return(render_template("vnc.html"))

View File

@ -1,7 +1,5 @@
{% extends "base.html" %}
{% block left_pannel %}
discord
{% endblock %}
{% block left_pannel %}config{% endblock %}

View File

@ -1,10 +1,5 @@
{% extends "base.html" %}
{% block left_pannel %}
<table>
</table>
{% endblock %}
{% block left_pannel %}login{% endblock %}
{% block content %}
{%if not current_user.is_authenticated %}

View File

@ -1,7 +1,5 @@
{% extends "base.html" %}
{% block left_pannel %}
logs
{% endblock %}
{% block left_pannel %}logs{% endblock %}
{% block content %}
{%if not current_user.is_authenticated %}

View File

@ -1,7 +1,5 @@
{% extends "base.html" %}
{% block left_pannel %}
proxy
{% endblock %}
{% block left_pannel %}proxy{% endblock %}

View File

@ -1,7 +1,5 @@
{% extends "base.html" %}
{% block left_pannel %}
schedule
{% endblock %}
{% block left_pannel %}schedule{% endblock %}
{% block content %}

View File

@ -1,7 +1,5 @@
{% extends "base.html" %}
{% block left_pannel %}
settings
{% endblock %}
{% block left_pannel %}settings{% endblock %}
{% block content %}
{%if not current_user.is_authenticated %}

View File

@ -1,7 +1,5 @@
{% extends "base.html" %}
{% block left_pannel %}
stats
{% endblock %}
{% block left_pannel %}stats{% endblock %}
{% block content %}

View File

@ -1,8 +1,6 @@
{% extends "base.html" %}
{% block left_pannel %}
override
{% endblock %}
{% block left_pannel %}override{% endblock %}
{% block content %}

View File

@ -1 +1 @@
v6.4.3
v6.4.4