Skip to content

Commit

Permalink
test-fix (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi4er4 authored Apr 30, 2024
1 parent 52e1aef commit 7828e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/learning/services/enrollment_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ def is_course_failed_by_student(course: Course, student: User,
if course.is_club_course or not course.is_completed:
return False
if enrollment:
return enrollment.grade in enrollment.GRADES.unsatisfactory_grades
return enrollment.grade in GradeTypes.unsatisfactory_grades
return (Enrollment.active
.filter(student=student,
course=course,
grade__in=enrollment.GRADES.unsatisfactory_grades)
grade__in=GradeTypes.unsatisfactory_grades)
.exists())


Expand Down

0 comments on commit 7828e54

Please sign in to comment.