Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JibrilExe committed May 23, 2024
1 parent 3a7e6cc commit 3adf2e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/project/endpoints/projects/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def get(self, uid=None):
projects = projects.all()
projects = [p for p in projects if get_course_of_project(p.project_id) in courses]
projects_student = Project.query.filter(Project.course_id.in_(courses_student)).all()
projects_student = projects_student.filter(and_(*conditions)) if conditions else projects_student
projects_student = projects_student.filter(and_(*conditions)) \
if conditions else projects_student
projects_student = [p for p in projects_student if p.visible_for_students]
projects += projects_student

Expand Down

0 comments on commit 3adf2e6

Please sign in to comment.