Skip to content

Commit

Permalink
Fix query runner types
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Nov 6, 2023
1 parent 9389bdd commit 79bcea2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Optional, List, Union, Type

from django.utils.timezone import datetime

from posthog.caching.insights_api import BASE_MINIMUM_INSIGHT_REFRESH_INTERVAL, REDUCED_MINIMUM_INSIGHT_REFRESH_INTERVAL
from posthog.caching.utils import is_stale
from posthog.hogql.parser import parse_expr
Expand All @@ -16,7 +17,7 @@
WebTopClicksQuery,
WebOverviewQuery,
WebStatsTableQuery,
HogQLPropertyFilter,
PersonPropertyFilter,
)

WebQueryNode = Union[
Expand Down Expand Up @@ -47,7 +48,7 @@ def pathname_property_filter(self) -> Optional[EventPropertyFilter]:
return None

@cached_property
def property_filters_without_pathname(self) -> List[Union[EventPropertyFilter, HogQLPropertyFilter]]:
def property_filters_without_pathname(self) -> List[Union[EventPropertyFilter, PersonPropertyFilter]]:
return [p for p in self.query.properties if p.key != "$pathname"]

def session_where(self, include_previous_period: Optional[bool] = None):
Expand Down

0 comments on commit 79bcea2

Please sign in to comment.