diff --git a/insights/sources/flowruns/usecases/query_execute.py b/insights/sources/flowruns/usecases/query_execute.py index f0d9627..dae638e 100644 --- a/insights/sources/flowruns/usecases/query_execute.py +++ b/insights/sources/flowruns/usecases/query_execute.py @@ -42,7 +42,7 @@ def execute( others=terms_agg.get("agg_value", {}).get("sum_other_doc_count", 0), terms_agg_buckets=terms_agg.get("agg_value", {}).get("buckets", []), ) - if len(transformed_terms) == 1: + if len(transformed_terms) <= 1: return transformed_terms[0] return { "results": transformed_terms,