1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Update more stuff

This commit is contained in:
Steffo 2018-07-21 22:47:52 +02:00
parent faec651630
commit c98baf473a

View file

@ -21,20 +21,35 @@ telegram_bot = telegram.Bot(config["Telegram"]["bot_token"])
@app.errorhandler(400)
def error_400():
def error_400(_=None):
return render_template("errors/400.html", config=config)
@app.route("/400")
def page_400():
return error_400()
@app.errorhandler(403)
def error_400():
def error_403(_=None):
return render_template("errors/403.html", config=config)
@app.route("/403")
def page_403():
return error_403()
@app.errorhandler(500)
def error_400():
def error_500(_=None):
return render_template("errors/500.html", config=config)
@app.route("/500")
def page_500():
return error_500()
@app.route("/")
def page_main():
if fl_session.get("user_id"):