From fa585e1ac71b743780fdc0f5fd53ebcad7b60571 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:14:07 +0100 Subject: [PATCH] Fix workflow index total matches wrong count --- lib/galaxy/managers/workflows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/managers/workflows.py b/lib/galaxy/managers/workflows.py index 58bc7e52a2b6..ee6fc211f6ae 100644 --- a/lib/galaxy/managers/workflows.py +++ b/lib/galaxy/managers/workflows.py @@ -224,7 +224,7 @@ def name_filter(term): term, ) ) - query = query.filter(model.StoredWorkflow.table.c.deleted == (true() if show_deleted else false())) + query = query.filter(model.StoredWorkflow.table.c.deleted == (true() if show_deleted else false())).distinct() if include_total_count: total_matches = query.count() else: