Skip to content

Commit

Permalink
Fix string Python considers unterminated
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Apr 24, 2024
1 parent 95ff3e0 commit f82d3be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions posthog/hogql_queries/query_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,8 @@ def calculate(self) -> BaseModel:
def run(
self, execution_mode: ExecutionMode = ExecutionMode.RECENT_CACHE_CALCULATE_IF_STALE
) -> CachedQueryResponse | CacheMissResponse:
cache_key = cache_key = f"{self.get_cache_key()}_{
self.limit_context or LimitContext.QUERY # TODO: This should probably just be in get_cache_key()
}"
# TODO: `self.limit_context` should probably just be in get_cache_key()
cache_key = cache_key = f"{self.get_cache_key()}_{self.limit_context or LimitContext.QUERY}"
tag_queries(cache_key=cache_key)

if execution_mode != ExecutionMode.CALCULATION_ALWAYS:
Expand Down

0 comments on commit f82d3be

Please sign in to comment.