Fix workflow index total matches wrong count

This commit is contained in:
davelopez
2023-12-12 19:08:10 +01:00
parent 75c11225c6
commit fa585e1ac7
+1 -1
View File
@@ -224,7 +224,7 @@ class WorkflowsManager(sharable.SharableModelManager, deletable.DeletableManager
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: