Исправления

This commit is contained in:
Gitea
2022-05-30 12:07:03 +09:00
parent 5b4ea0486c
commit 076cf8513c
14 changed files with 40 additions and 33 deletions

View File

@ -29,7 +29,8 @@ async def get_services(IDPersonalAccount: int, db: Session = Depends(get_db)):
@router.get("/get_debt/{IDPersonalAccount}", response_model=List[schemas.PersonalAccountDebtSerilizer])
async def get_debt(IDPersonalAccount: int, db: Session = Depends(get_db)):
data = crud.PersonalAccountViewSet.get_debt(db, IDPersonalAccount)
body = schemas.PersonalAccountInit( IDPersonalAccount = IDPersonalAccount)
data = crud.PersonalAccountViewSet.get_debt(db, body)
return data