From f82d3bec50e5fa8624d08661cbb55a106d141447 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Wed, 24 Apr 2024 19:57:01 +0200 Subject: [PATCH] Fix string Python considers unterminated --- posthog/hogql_queries/query_runner.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/posthog/hogql_queries/query_runner.py b/posthog/hogql_queries/query_runner.py index 3564cd09c47b3..1ddd336dee981 100644 --- a/posthog/hogql_queries/query_runner.py +++ b/posthog/hogql_queries/query_runner.py @@ -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: