fix contract recap

This commit is contained in:
2026-03-05 20:58:00 +01:00
parent 5c356f5802
commit cb0235e19f
5 changed files with 153 additions and 89 deletions

View File

@@ -81,8 +81,8 @@ def update_one(
return new_productor
def delete_one(session: Session, id: int) -> models.ProductorPublic:
statement = select(models.Productor).where(models.Productor.id == id)
def delete_one(session: Session, _id: int) -> models.ProductorPublic:
statement = select(models.Productor).where(models.Productor.id == _id)
result = session.exec(statement)
productor = result.first()
if not productor: