diff --git a/api/manage_project.py b/api/manage_project.py index 4c1d669..7db113c 100644 --- a/api/manage_project.py +++ b/api/manage_project.py @@ -138,6 +138,7 @@ async def create_project(data: dict, session: SessionDep): # 处理项目和用户的关联 # 先清除现有的关联 # 生成删除语句并执行 + print(project_id) #测试用 stmt = delete(ProjectUserLink).where(ProjectUserLink.project_id == project.id) session.execute(stmt) session.commit() # 提交事务