Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
251a471700
@ -40,17 +40,15 @@ async def get_project(response: Response, session: SessionDep, current_user: Use
|
|||||||
raise HTTPException(status_code=404, detail="Project not found or you have no projects.")
|
raise HTTPException(status_code=404, detail="Project not found or you have no projects.")
|
||||||
|
|
||||||
# 返回项目的基本信息
|
# 返回项目的基本信息
|
||||||
return {
|
return [
|
||||||
"projects": [
|
{
|
||||||
{
|
"name": project.name,
|
||||||
"name": project.name,
|
"requirement": project.requirement,
|
||||||
"requirement": project.requirement,
|
"start_time": project.start_time,
|
||||||
"start_time": project.start_time,
|
"deadline": project.deadline
|
||||||
"deadline": project.deadline
|
}
|
||||||
}
|
for project in projects
|
||||||
for project in projects
|
]
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# 新增与修改项目
|
# 新增与修改项目
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user