Skip to content

Commit c3e55b2

Browse files
author
Chen
committed
fix: 优化搜索逻辑
1 parent 869397e commit c3e55b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/routes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ async def get_video_list(
2525
) -> _Page[GetVideoInfoSchema]:
2626
statement = select(Video).where(
2727
or_(
28+
Video.bvid == q,
2829
Video.title.ilike(f"%{q}%"),
2930
Video.belong.ilike(f"%{q}%"),
3031
),

0 commit comments

Comments
 (0)