From 6ed3e6076432ec70a6ff1a6e63ad9067e0c3b6be Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Tue, 26 Mar 2024 22:41:12 +0100 Subject: [PATCH] remove extra code --- posthog/hogql_queries/insights/trends/breakdown.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/posthog/hogql_queries/insights/trends/breakdown.py b/posthog/hogql_queries/insights/trends/breakdown.py index 60ea0c35ebafc..4ab6232dd3a3e 100644 --- a/posthog/hogql_queries/insights/trends/breakdown.py +++ b/posthog/hogql_queries/insights/trends/breakdown.py @@ -139,12 +139,6 @@ def events_where_filter(self) -> ast.Expr | None: if not self.is_histogram_breakdown: left = hogql_to_string(left) - if self.query.breakdownFilter is not None: - hide_other = self.query.breakdownFilter.breakdown_hide_other_aggregation - breakdown_limit = self.query.breakdownFilter.breakdown_limit or 25 - if len(self._breakdown_values) < breakdown_limit + (0 if hide_other else 1): - return ast.Constant(value=True) - compare_ops = [] for _value in self._breakdown_values: value: Optional[str] = str(_value) # non-cohorts are always strings