From c671dc5e23f85827a16b6a1b8be686ae2ade52d4 Mon Sep 17 00:00:00 2001 From: hole-thu Date: Sat, 25 Dec 2021 00:18:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtag=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hole.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hole.py b/hole.py index 0e32684..961b636 100644 --- a/hole.py +++ b/hole.py @@ -201,8 +201,8 @@ def search(): if search_mode == 0: # tag 搜索 tag_pids = TagRecord.query.with_entities( TagRecord.pid - ).filter_by( - tag=keywords + ).filter_by(tag=keywords).order_by( + TagRecord.pid.desc() ).limit(pagesize).offset((page - 1) * pagesize).all() tag_pids = [