From ae94f1624cf7ee5ea773d93fa4fd88436579f0c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80=C3=AE=C3=97=C3=9A=C3=95=C3=B1?= Date: Fri, 16 Sep 2022 15:53:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/interview.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index 50ffc1d..e8941e5 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -179,7 +179,11 @@ async def interview_find( sql = res['sql'] data = await db.execute(sql) if not data: - return schemas.Msg(code=200, msg='无数据', data=[]) + res_msg = { + 'manner_2_num': 0, + 'manner_01_num': 0, + } + return schemas.Msg(code=200, msg='无数据', data=res_msg) # 格式化数据 res_data = chkData(data)