before gemiin

This commit is contained in:
2026-02-22 22:18:32 +01:00
parent fb33540bb0
commit 9db5cbf236
147 changed files with 7948 additions and 531 deletions

View File

@@ -12,7 +12,7 @@ def list_plants(
categorie: Optional[str] = Query(None),
session: Session = Depends(get_session),
):
q = select(Plant)
q = select(Plant).order_by(Plant.nom_commun, Plant.variete, Plant.id)
if categorie:
q = q.where(Plant.categorie == categorie)
return session.exec(q).all()