From 8c9e29aa07e08ae38658cbc3288cd59f94a570e7 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 11:38:47 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index 26192c8..dd5c8f2 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -158,7 +158,7 @@ async def interview_find( sql = res['sql'] data = await db.execute(sql) if not data: - return schemas.Msg(code=200, msg='无数据', data=None) + return schemas.Msg(code=200, msg='无数据', data=[]) # 格式化数据 res_data = chkData(data) return schemas.Msg(code=200, msg='ok', data=res_data) @@ -178,7 +178,7 @@ async def interview_home_find( sql = res['sql'] data = await db.execute(sql) if not data: - return schemas.Msg(code=200, msg='无数据', data=None) + return schemas.Msg(code=200, msg='无数据', data=[]) # 格式化数据 res_data = chkData(data) return schemas.Msg(code=200, msg='ok', data=res_data) @@ -198,7 +198,7 @@ async def interview_screen_find( sql = res['sql'] data = await db.execute(sql) if not data: - return schemas.Msg(code=200, msg='无数据', data=None) + return schemas.Msg(code=200, msg='无数据', data=[]) # 格式化数据 res_data = chkData(data) return schemas.Msg(code=200, msg='ok', data=res_data) @@ -218,7 +218,7 @@ async def interview_exam_find( sql = res['sql'] data = await db.execute(sql) if not data: - return schemas.Msg(code=200, msg='无数据', data=None) + return schemas.Msg(code=200, msg='无数据', data=[]) # 格式化数据 res_data = chkData(data) return schemas.Msg(code=200, msg='ok', data=res_data)