feat: update subscription enrollment alert (#32414)

This commit is contained in:
Nawfal Ahmed
2023-06-12 18:07:43 +05:00
committed by GitHub
parent 2002dcb7bd
commit 6a5c1bbf44
8 changed files with 52 additions and 25 deletions

View File

@@ -352,6 +352,9 @@ class ProgramProgressMeter:
'completed': len(completed) if count_only else completed,
'in_progress': len(in_progress) if count_only else in_progress,
'not_started': len(not_started) if count_only else not_started,
'all_unenrolled': all(
not self._is_course_enrolled(course) for course in program_copy['courses']
),
})
return progress