From e5d61abad3e66c5936fa6b8d2ae8ac147d17015e Mon Sep 17 00:00:00 2001 From: Verox001 Date: Tue, 30 Jan 2024 10:41:05 +0100 Subject: [PATCH] Return percentage on habit checking --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 790685c..dc0f442 100644 --- a/app.py +++ b/app.py @@ -329,7 +329,8 @@ def check_habit(): return { "habitId": habit_id, - "unchecked": not delete_tracking + "unchecked": not delete_tracking, + "percentage": habit.percentage, } @app.route('/delete', methods=['POST'])