Skip to content

Commit

Permalink
remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Mar 26, 2024
1 parent 445e7d9 commit 6ed3e60
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions posthog/hogql_queries/insights/trends/breakdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ed3e60

Please sign in to comment.