feat(observatoire): filtres montant min/max (#72)

This commit is contained in:
Colin Maudry
2026-04-22 23:53:43 +02:00
parent 522c467702
commit 6e670c97c9
2 changed files with 48 additions and 0 deletions
+8
View File
@@ -197,4 +197,12 @@ def dashboard_filters_to_sql(
)
params.append(list(dashboard_marche_considerations_environnementales))
if dashboard_montant_min is not None:
clauses.append('"montant" >= ?')
params.append(dashboard_montant_min)
if dashboard_montant_max is not None:
clauses.append('"montant" <= ?')
params.append(dashboard_montant_max)
return " AND ".join(clauses), params