From c4d23acbfdfcd6f7a710071d2caf5043fbf83563 Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Wed, 27 Nov 2024 11:13:05 -0800 Subject: [PATCH] fix: test for ast.Constant(value=None) (#26481) --- posthog/hogql_queries/web_analytics/web_overview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/hogql_queries/web_analytics/web_overview.py b/posthog/hogql_queries/web_analytics/web_overview.py index 6e7e3ac7d6bd5..cb17930afc752 100644 --- a/posthog/hogql_queries/web_analytics/web_overview.py +++ b/posthog/hogql_queries/web_analytics/web_overview.py @@ -159,7 +159,7 @@ def event_type_expr(self) -> ast.Expr: op=ast.CompareOperationOp.Eq, left=ast.Field(chain=["event"]), right=ast.Constant(value="$pageview") ) - if self.conversion_goal_expr: + if self.conversion_goal_expr and self.conversion_goal_expr != ast.Constant(value=None): return ast.Call(name="or", args=[pageview_expr, self.conversion_goal_expr]) else: return pageview_expr