From 46b678735258adece25c00291844541a74c2e9a8 Mon Sep 17 00:00:00 2001 From: Yapollon Date: Tue, 23 Jan 2024 10:50:56 +0100 Subject: [PATCH] nice nice --- app.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app.py b/app.py index e32abca..3b3f549 100644 --- a/app.py +++ b/app.py @@ -31,11 +31,10 @@ def inject_user(): # Create a new route @app.route('/') def index(): - # return 'Hello World' if current_user.is_authenticated: habits = current_user.get_habits() - name = "Hallo " + current_user.name + name = "Hallo " + current_user.name + "du hurensohn" else: habits = [] name = "Bitte melde dich an." @@ -50,12 +49,6 @@ def index(): ) -@app.route('/test') -@login_required -def secret(): - return 'Pssst!' - - @app.route('/login') @anonymous_required def login():