Return percentage on habit checking

This commit is contained in:
Verox001 2024-01-30 10:41:05 +01:00
parent 45971b4bdf
commit e5d61abad3

3
app.py
View File

@ -329,7 +329,8 @@ def check_habit():
return { return {
"habitId": habit_id, "habitId": habit_id,
"unchecked": not delete_tracking "unchecked": not delete_tracking,
"percentage": habit.percentage,
} }
@app.route('/delete', methods=['POST']) @app.route('/delete', methods=['POST'])