Skip to content

Commit efd2d86

Browse files
committed
fix
1 parent 5121f96 commit efd2d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rating_api/models/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def search_by_user_id(self, query: int) -> bool:
149149
def search_by_subject(self, query: str) -> bool:
150150
if not query:
151151
return true()
152-
return func.lower(Comment.subject).contains(querylower())
152+
return func.lower(Comment.subject).contains(query.lower())
153153

154154

155155
class LecturerUserComment(BaseDbModel):

0 commit comments

Comments
 (0)