From 2a523a3b4165a2bb43524f53de31026c6c215c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CF=89=E2=80=A2=C6=92=CE=B5=C3=AF?= <164175317@qq.com> Date: Wed, 8 Mar 2023 02:32:14 +0000 Subject: [PATCH] =?UTF-8?q?update=20applications/view/admin/user.py.=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=20=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=8A=A5=E9=94=99=EF=BC=8CTypeError:=20'Pagi?= =?UTF-8?q?nation'=20object=20is=20not=20iterable=EF=BC=8C=E9=9C=80?= =?UTF-8?q?=E8=A6=81query=20=E6=94=B9=E6=88=90query.items=E8=A7=A3?= =?UTF-8?q?=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ω•ƒεï <164175317@qq.com> --- applications/view/admin/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/view/admin/user.py b/applications/view/admin/user.py index 8cf5304..66d9f60 100644 --- a/applications/view/admin/user.py +++ b/applications/view/admin/user.py @@ -54,7 +54,7 @@ def data(): 'create_at': user.create_at, 'update_at': user.update_at, 'dept_name': dept.dept_name if dept else None - } for user, dept in query], + } for user, dept in query.items], count=query.total) # 用户增加 -- Gitee