From 1118db4837096498f9fba39b2443b593d7ab997e Mon Sep 17 00:00:00 2001 From: Jowe <123822645+Selei1983@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:11:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DNewsAdmin=E7=9A=84join?= =?UTF-8?q?edload=E5=AF=BC=E8=87=B4=E8=AE=A1=E6=95=B0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- app.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app.py b/app.py index e96f773..5ed879a 100644 --- a/app.py +++ b/app.py @@ -2998,12 +2998,6 @@ Sitemap: {}sitemap.xml db.orm.joinedload(News.site) ) - def get_count_query(self): - """优化计数查询""" - return super().get_count_query().options( - db.orm.joinedload(News.site) - ) - # Prompt模板管理视图 class PromptAdmin(SecureModelView): can_edit = True