OMG C'est trop bie
This commit is contained in:
parent
f0447b2d1d
commit
424798c7f6
20
Flask/app.py
20
Flask/app.py
|
@ -134,7 +134,7 @@ def login():
|
||||||
login_user(user)
|
login_user(user)
|
||||||
if password == "ChangeMe":
|
if password == "ChangeMe":
|
||||||
return(redirect('/change_password'))
|
return(redirect('/change_password'))
|
||||||
return(redirect('/override'))
|
return(redirect('/schedule'))
|
||||||
else:
|
else:
|
||||||
return abort(401)
|
return abort(401)
|
||||||
else:
|
else:
|
||||||
|
@ -175,7 +175,7 @@ def load_user(userid):
|
||||||
def main():
|
def main():
|
||||||
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
||||||
configs = json.load(inFile)
|
configs = json.load(inFile)
|
||||||
return(render_template("override.html", data=configs))
|
return(render_template("schedule.html", data=configs))
|
||||||
|
|
||||||
|
|
||||||
@app.route("/discord/")
|
@app.route("/discord/")
|
||||||
|
@ -282,15 +282,15 @@ def proxy_post():
|
||||||
return(render_template("proxy.html", data=data, len=maxi(data)))
|
return(render_template("proxy.html", data=data, len=maxi(data)))
|
||||||
|
|
||||||
|
|
||||||
@app.route("/override/")
|
@app.route("/schedule/")
|
||||||
def override_get():
|
def schedule_get():
|
||||||
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
||||||
configs = json.load(inFile)
|
configs = json.load(inFile)
|
||||||
return(render_template("override.html", data=configs))
|
return(render_template("schedule.html", data=configs))
|
||||||
|
|
||||||
|
|
||||||
@app.route("/override/", methods=["post"])
|
@app.route("/schedule/", methods=["post"])
|
||||||
def override_post():
|
def schedule_post():
|
||||||
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
||||||
configs = json.load(inFile)
|
configs = json.load(inFile)
|
||||||
|
|
||||||
|
@ -308,7 +308,7 @@ def override_post():
|
||||||
with open("/app/MsRewards-Reborn/user_data/configs.json", "w") as inFile:
|
with open("/app/MsRewards-Reborn/user_data/configs.json", "w") as inFile:
|
||||||
json.dump(configs, inFile)
|
json.dump(configs, inFile)
|
||||||
update_jobs()
|
update_jobs()
|
||||||
return(render_template("override.html", data=configs))
|
return(render_template("schedule.html", data=configs))
|
||||||
|
|
||||||
|
|
||||||
@app.route("/config/")
|
@app.route("/config/")
|
||||||
|
@ -369,8 +369,8 @@ def stats():
|
||||||
return(render_template("stats.html"))
|
return(render_template("stats.html"))
|
||||||
|
|
||||||
|
|
||||||
@app.route("/dev_override/", methods=["GET", "POST"])
|
@app.route("/override/", methods=["GET", "POST"])
|
||||||
def real_override():
|
def override():
|
||||||
return(render_template("vnc.html"))
|
return(render_template("vnc.html"))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block left_pannel %}
|
{% block left_pannel %}config{% endblock %}
|
||||||
discord
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block left_pannel %}
|
{% block left_pannel %}login{% endblock %}
|
||||||
|
|
||||||
<table>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
{% endblock %}
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{%if not current_user.is_authenticated %}
|
{%if not current_user.is_authenticated %}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block left_pannel %}
|
{% block left_pannel %}logs{% endblock %}
|
||||||
logs
|
|
||||||
{% endblock %}
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{%if not current_user.is_authenticated %}
|
{%if not current_user.is_authenticated %}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block left_pannel %}
|
{% block left_pannel %}proxy{% endblock %}
|
||||||
proxy
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block left_pannel %}
|
{% block left_pannel %}schedule{% endblock %}
|
||||||
schedule
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block left_pannel %}
|
{% block left_pannel %}settings{% endblock %}
|
||||||
settings
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{%if not current_user.is_authenticated %}
|
{%if not current_user.is_authenticated %}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block left_pannel %}
|
{% block left_pannel %}stats{% endblock %}
|
||||||
stats
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block left_pannel %}
|
{% block left_pannel %}override{% endblock %}
|
||||||
override
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue