diff --git a/Flask/app.py b/Flask/app.py index 427e217..024f7e5 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -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")) diff --git a/Flask/templates/config.html b/Flask/templates/config.html index 984b667..eb3fc6f 100644 --- a/Flask/templates/config.html +++ b/Flask/templates/config.html @@ -1,7 +1,5 @@ {% extends "base.html" %} -{% block left_pannel %} -discord -{% endblock %} +{% block left_pannel %}config{% endblock %} diff --git a/Flask/templates/login.html b/Flask/templates/login.html index b11d5b5..bb7b340 100644 --- a/Flask/templates/login.html +++ b/Flask/templates/login.html @@ -1,10 +1,5 @@ {% extends "base.html" %} -{% block left_pannel %} - -