From ad7e4674eda4ba97631f99f87a90d5d4eace8d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Mon, 30 May 2022 15:29:23 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E7=9C=8B=E6=9D=BF=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/report.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/api_v1/endpoints/report.py b/api/api_v1/endpoints/report.py index 0103a19..e212a21 100644 --- a/api/api_v1/endpoints/report.py +++ b/api/api_v1/endpoints/report.py @@ -91,11 +91,11 @@ async def read_report( # projection = {'query': False} projection = None #获取已建报表 属于自己的 - # reports = await crud.report.read_report(db, project_id=data_in.project_id, - # projection=projection, **ext_where) - #有权限的都能获取到 reports = await crud.report.read_report(db, project_id=data_in.project_id, - projection=projection) + projection=projection, **ext_where) + #有权限的都能获取到 + # reports = await crud.report.read_report(db, project_id=data_in.project_id, + # projection=projection) for item in reports: item['added'] = False