From 79a1b0c559a0e6b640e0111bf851dd9ad311f9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Mon, 23 May 2022 14:41:43 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8A=8A=E7=AB=A5=E8=AF=9D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=9C=A8=E7=AC=AC=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/project.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/api_v1/endpoints/project.py b/api/api_v1/endpoints/project.py index 0eef266..5456321 100644 --- a/api/api_v1/endpoints/project.py +++ b/api/api_v1/endpoints/project.py @@ -86,6 +86,10 @@ async def read_project(request: Request, # resp = await crud.project.get_my_game(db, game_list) project_data = await crud.user_url.get_quanxian(db, schemas.Url_quanxian(user_id=request.user.id)) resp = await crud.project.get_my_game(db, project_data['game']) + #把童话放在第一个 + resp1=resp[-1] + resp.remove(resp[-1]) + resp.insert(0,resp1) return schemas.Msg(code=0, msg='ok', data=resp) #获取项目名和渠道名project_name @router.get("/project_name")