Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d26b1a4ff8
7
app.py
7
app.py
@ -207,6 +207,10 @@ def habit_create():
|
||||
except ValueError:
|
||||
errors['list_query'] = 'Die Anzahl muss eine Zahl sein.'
|
||||
|
||||
# Check if unit is day and times is one
|
||||
if unit == 'Tag' and times == 1:
|
||||
errors['times'] = 'Die Anzahl muss größer als 1 sein, wenn das Habit täglich ist.'
|
||||
|
||||
if errors:
|
||||
return render_template(
|
||||
'habit.html',
|
||||
@ -378,6 +382,9 @@ def edit_habit_change():
|
||||
except ValueError:
|
||||
errors['list_query'] = 'Die Anzahl muss eine Zahl sein.'
|
||||
|
||||
if unit == 'Tag' and times == 1:
|
||||
errors['times'] = 'Die Anzahl muss größer als 1 sein, wenn das Habit täglich ist.'
|
||||
|
||||
if errors:
|
||||
return render_template(
|
||||
"edit-habit.html",
|
||||
|
||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
pillow~=10.2.0
|
||||
flask~=3.0.0
|
||||
Loading…
x
Reference in New Issue
Block a user