Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ec82160214
10
app.py
10
app.py
@ -208,8 +208,8 @@ def habit_create():
|
|||||||
errors['list_query'] = 'Die Anzahl muss eine Zahl sein.'
|
errors['list_query'] = 'Die Anzahl muss eine Zahl sein.'
|
||||||
|
|
||||||
# Check if unit is day and times is one
|
# Check if unit is day and times is one
|
||||||
if unit == 'Tag' and times == 1:
|
if unit == 'Tag' and times != 1:
|
||||||
errors['times'] = 'Die Anzahl muss größer als 1 sein, wenn das Habit täglich ist.'
|
errors['times'] = 'Die Anzahl muss 1 sein, wenn das Habit täglich ist.'
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
return render_template(
|
return render_template(
|
||||||
@ -382,8 +382,8 @@ def edit_habit_change():
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
errors['list_query'] = 'Die Anzahl muss eine Zahl sein.'
|
errors['list_query'] = 'Die Anzahl muss eine Zahl sein.'
|
||||||
|
|
||||||
if unit == 'Tag' and times == 1:
|
if unit == 'Tag' and times != 1:
|
||||||
errors['times'] = 'Die Anzahl muss größer als 1 sein, wenn das Habit täglich ist.'
|
errors['times'] = 'Die Anzahl muss 1 sein, wenn das Habit täglich ist.'
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
return render_template(
|
return render_template(
|
||||||
@ -667,4 +667,4 @@ def add_user():
|
|||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(port=5000, debug=True)
|
app.run(host="0.0.0.0", port=5000, debug=True)
|
||||||
|
|||||||
@ -1,2 +1,3 @@
|
|||||||
pillow~=10.2.0
|
pillow~=10.2.0
|
||||||
flask~=3.0.0
|
flask~=3.0.0
|
||||||
|
flask-login~=0.6.3
|
||||||
Loading…
x
Reference in New Issue
Block a user