added new functionality

This commit is contained in:
Yapollon 2024-01-23 11:00:37 +01:00
parent 2b0d94c39b
commit 25a9238e1d

4
app.py
View File

@ -121,10 +121,10 @@ def index():
if current_user.is_authenticated: if current_user.is_authenticated:
habits = current_user.get_habits() habits = current_user.get_habits()
name = "Hallo " + current_user.name + "du hurensohn" name = "Hallo " + current_user.name
else: else:
habits = [] habits = []
name = "Bitte melde dich an." name = "Bitte melde dich an, du Vollhorst."
# habits = [("lesen", "eine Seite vor dem Schlafen gehen"), ("sport", "3x Gym")] # habits = [("lesen", "eine Seite vor dem Schlafen gehen"), ("sport", "3x Gym")]
return render_template( return render_template(