修复tag搜索顺序
This commit is contained in:
4
hole.py
4
hole.py
@@ -201,8 +201,8 @@ def search():
|
|||||||
if search_mode == 0: # tag 搜索
|
if search_mode == 0: # tag 搜索
|
||||||
tag_pids = TagRecord.query.with_entities(
|
tag_pids = TagRecord.query.with_entities(
|
||||||
TagRecord.pid
|
TagRecord.pid
|
||||||
).filter_by(
|
).filter_by(tag=keywords).order_by(
|
||||||
tag=keywords
|
TagRecord.pid.desc()
|
||||||
).limit(pagesize).offset((page - 1) * pagesize).all()
|
).limit(pagesize).offset((page - 1) * pagesize).all()
|
||||||
|
|
||||||
tag_pids = [
|
tag_pids = [
|
||||||
|
|||||||
Reference in New Issue
Block a user