bug修改
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ from schemas.student import StudentCreate
|
||||
student_router = APIRouter()
|
||||
|
||||
@student_router.post("/student")
|
||||
def create_student(request:StudentCreate,db:Session,create = Depends(create_students)):
|
||||
def create_student(request:StudentCreate,db:Session=Depends(create_students)):
|
||||
d = request.model_dump()
|
||||
r = create_students(d,db)
|
||||
if not r:
|
||||
|
||||
Reference in New Issue
Block a user