Skip to content

Commit

Permalink
chore: linting fix #400
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilkyn committed May 13, 2024
1 parent 50a48a4 commit 0714779
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/api/serializers/group_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ def to_representation(self, instance):
# Same with being a student, but not being part of the course affiliated with this group
if is_student(user) and \
not ((is_assistant(user) or is_teacher(user)) and
not user.student.courses.filter(id=instance.project.course.id).exists()):
student_in_course = user.student.courses.filter(id=instance.project.course.id).exists()
print(student_in_course, flush=True)
not user.student.courses.filter(id=course_id).exists()):
student_in_course = user.student.courses.filter(id=course_id).exists()
# Student can not see the score if they are not part of the course associated with group,
# or it is not visible yet
if not student_in_course or \
Expand Down

0 comments on commit 0714779

Please sign in to comment.