Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert09 committed Jan 3, 2024
1 parent 91b10a6 commit 1841e24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion posthog/hogql_queries/insights/trends/query_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ def _inner_select_query(self, inner_query: ast.SelectQuery | ast.SelectUnionQuer
),
)

if self.query.trendsFilter is not None and self.query.trendsFilter.smoothing_intervals is not None:
if (
self.query.trendsFilter is not None
and self.query.trendsFilter.smoothing_intervals is not None
and self.query.trendsFilter.smoothing_intervals > 1
):
smoothing_count = ast.Alias(
alias="count",
expr=ast.Call(
Expand Down
Loading

0 comments on commit 1841e24

Please sign in to comment.