From 91c0f9a3a7ebb2ecea5e2912150f58193814de49 Mon Sep 17 00:00:00 2001 From: yangjian Date: Wed, 21 Dec 2022 22:30:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7Token=20API?= =?UTF-8?q?=E6=96=87=E9=9B=86=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=95=B0=E9=87=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_api/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app_api/views.py b/app_api/views.py index cc99962..61dde4b 100644 --- a/app_api/views.py +++ b/app_api/views.py @@ -130,6 +130,7 @@ def get_projects(request): 'name':project.name, # 文集名称 'icon': project.icon, # 文集图标 'type':project.role, # 文集状态 + 'total': Doc.objects.filter(top_doc=project.id, status=1).count(), 'create_time': project.create_time } project_list.append(item)