Skip to content

Commit

Permalink
Remove distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Nov 10, 2023
1 parent 807cdf0 commit 3dbbdf6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apptax/taxonomie/routestaxref.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,6 @@ def get_names():
fields_to_filter = None
if fields:
fields_to_filter = [f for f in fields if getattr(Taxref, f, None)]
# Ajout disctinct pour ne pas avoir de doublons
for field in [getattr(Taxref, f, None) for f in fields if getattr(Taxref, f, None)]:
q = q.distinct(field)

results = q.paginate(page=page, per_page=limit, error_out=False)
items = []
Expand Down

0 comments on commit 3dbbdf6

Please sign in to comment.