Skip to content

Commit

Permalink
fix: match backend progress with frontend progress (#522)
Browse files Browse the repository at this point in the history
Co-authored-by: Muhammad Faraz  Maqsood <[email protected]>
  • Loading branch information
Faraz32123 and Muhammad Faraz Maqsood authored Mar 6, 2024
1 parent 3878414 commit 10b5e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx/features/sdaia_features/course_progress/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 10b5e17

Please sign in to comment.