Skip to content

Commit

Permalink
Avoid duplicate entries in history index api response
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 13, 2024
1 parent 698c3f8 commit 22cbda7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/managers/histories.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ def p_tag_filter(term_text: str, quoted: bool):
self.model_class.deleted == (true() if show_deleted else false())
)

stmt = stmt.distinct()

if include_total_count:
total_matches = get_count(trans.sa_session, stmt)
else:
Expand Down

0 comments on commit 22cbda7

Please sign in to comment.