We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5121f96 commit efd2d86Copy full SHA for efd2d86
rating_api/models/db.py
@@ -149,7 +149,7 @@ def search_by_user_id(self, query: int) -> bool:
149
def search_by_subject(self, query: str) -> bool:
150
if not query:
151
return true()
152
- return func.lower(Comment.subject).contains(querylower())
+ return func.lower(Comment.subject).contains(query.lower())
153
154
155
class LecturerUserComment(BaseDbModel):
0 commit comments