Skip to content

Commit

Permalink
Merge pull request galaxyproject#17759 from jdavcs/24.0_distinct
Browse files Browse the repository at this point in the history
[24.0] Fix usage of DISTINCT
  • Loading branch information
bgruening committed Mar 16, 2024
2 parents 1150fb4 + ec4ce21 commit 3ebf8eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/managers/histories.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def p_tag_filter(term_text: str, quoted: bool):
total_matches = None
if payload.sort_by == "username":
sort_column = model.User.username
stmt = stmt.add_columns(sort_column)
else:
sort_column = getattr(model.History, payload.sort_by)
if payload.sort_desc:
Expand Down

0 comments on commit 3ebf8eb

Please sign in to comment.