refresh Mensa

This commit is contained in:
2023-12-04 21:42:58 +01:00
parent 96a116e240
commit dbcf3cc0ce
4 changed files with 115 additions and 139 deletions

8
app.py
View File

@ -96,8 +96,9 @@ def getRapla():
return redirect(url_for("error", ecode=file + 900))
return redirect(url_for("welcome"))
@login_required
@app.route("/backendpoc/plan", methods=["GET"])
@login_required
def displayRapla():
week = request.args.get("week")
if week:
@ -215,5 +216,10 @@ def logout():
return red
@app.errorhandler(AttributeError)
def handle_anon(e):
return redirect(url_for("login"), code=e)
if __name__ == "__main__":
app.run(host='0.0.0.0', port=2024, debug=True)