Skip to content

Commit

Permalink
Fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Apr 24, 2024
1 parent 5973b3e commit adae222
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions posthog/caching/calculate_results.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit adae222

Please sign in to comment.