add contract page with dynamic form elements
This commit is contained in:
@@ -7,7 +7,7 @@ def get_all(session: Session, names: list[str], types: list[str]) -> list[models
|
||||
statement = statement.where(models.Productor.name.in_(names))
|
||||
if len(types) > 0:
|
||||
statement = statement.where(models.Productor.type.in_(types))
|
||||
return session.exec(statement).all()
|
||||
return session.exec(statement.order_by(models.Productor.name)).all()
|
||||
|
||||
def get_one(session: Session, productor_id: int) -> models.ProductorPublic:
|
||||
return session.get(models.Productor, productor_id)
|
||||
|
||||
Reference in New Issue
Block a user