Skip to content

Commit

Permalink
remove bad param filter
Browse files Browse the repository at this point in the history
  • Loading branch information
JarneClauw committed May 23, 2024
1 parent 31901d4 commit d89057e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions backend/project/endpoints/projects/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ def get(self, uid=None):
courses_student = [c[0] for c in courses_student]
# Filter the projects based on the query parameters
filters = dict(request.args)
invalid_filters = set(filters.keys()) - {"project_id", "title", "course_id"}
if invalid_filters:
data["message"] = f"Invalid query parameters {invalid_filters}"
return data, 400
conditions = []
for key, value in filters.items():
if key in Project.__table__.columns:
Expand Down

0 comments on commit d89057e

Please sign in to comment.