From adae2223e3a2139d1d26e4c241713a73046efcbb Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Wed, 24 Apr 2024 19:05:24 +0200 Subject: [PATCH] Fix circular import --- posthog/caching/calculate_results.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/posthog/caching/calculate_results.py b/posthog/caching/calculate_results.py index ae4d6d8104f68..2fcf0ff04ccdd 100644 --- a/posthog/caching/calculate_results.py +++ b/posthog/caching/calculate_results.py @@ -1,6 +1,5 @@ from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union -from posthog.api.services.query import ExecutionMode import structlog from sentry_sdk import capture_exception @@ -110,7 +109,7 @@ def get_cache_type(cacheable: Optional[FilterType] | Optional[Dict]) -> CacheTyp def calculate_for_query_based_insight( insight: Insight, *, dashboard: Optional[Dashboard] = None, refresh_requested: bool ) -> "InsightResult": - from posthog.api.services.query import process_query + from posthog.api.services.query import process_query, ExecutionMode from posthog.caching.fetch_from_cache import InsightResult, NothingInCacheResult tag_queries(team_id=insight.team_id, insight_id=insight.pk)