Skip to content

Commit

Permalink
modif route taxons_autocomplete pour faire les synonymes saisies + le…
Browse files Browse the repository at this point in the history
… nom valide associé
  • Loading branch information
jbrieuclp authored Jan 29, 2024
1 parent 2a6ecdd commit 8b4f24d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/geonature/core/gn_synthese/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,8 @@ def get_autocomplete_taxons_synthese():
),
)
.distinct()
.join(Synthese, Synthese.cd_nom == VMTaxrefListForautocomplete.cd_nom)
.join(Taxref, Taxref.cd_ref == VMTaxrefListForautocomplete.cd_ref)
.join(Synthese, Synthese.cd_nom == Taxref.cd_nom)
)
search_name = search_name.replace(" ", "%")
query = query.where(
Expand Down

0 comments on commit 8b4f24d

Please sign in to comment.