From 2358648ec2597f831dbba8c880291ce581a4091b Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Wed, 6 Mar 2024 15:57:03 +0500 Subject: [PATCH] fix: match backend progress with frontend progress --- openedx/features/sdaia_features/course_progress/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/features/sdaia_features/course_progress/utils.py b/openedx/features/sdaia_features/course_progress/utils.py index e5f68674a4ff..b618ac03ec5d 100644 --- a/openedx/features/sdaia_features/course_progress/utils.py +++ b/openedx/features/sdaia_features/course_progress/utils.py @@ -18,5 +18,5 @@ def get_user_course_progress(user, course_key): locked_count = completion_summary.get('locked_count', 0) total_count = complete_count + incomplete_count + locked_count - completion_percentage = (complete_count / total_count) * 100 + completion_percentage = round((complete_count / total_count) * 100) return completion_percentage \ No newline at end of file