Skip to content

Commit

Permalink
feat: also return 0
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Jul 3, 2024
1 parent 638e7d3 commit 3c80d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insights/sources/flowruns/usecases/query_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3c80d62

Please sign in to comment.