Skip to content

Commit 7735a64

Browse files
committed
lint
1 parent 6f9e06a commit 7735a64

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rating_api/models/db.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,14 @@ def search_by_user_id(self, query: int) -> bool:
144144
if not query:
145145
return true()
146146
return Comment.user_id == query
147+
147148
@hybrid_method
148149
def search_by_subject(self, query: str) -> bool:
149150
if not query:
150151
return true()
151152
return func.lower(Comment.subject).contains(query)
152153

154+
153155
class LecturerUserComment(BaseDbModel):
154156
id: Mapped[int] = mapped_column(Integer, primary_key=True)
155157
user_id: Mapped[int] = mapped_column(Integer, nullable=False)

0 commit comments

Comments
 (0)