refactor: improve code readability by formatting arguments across multiple files
Test / test (push) Successful in 15s

This commit is contained in:
Artem Kashaev
2025-12-01 16:25:30 +05:00
parent dc0046c730
commit 1dd7c2f2b8
22 changed files with 161 additions and 49 deletions
+10 -3
View File
@@ -169,7 +169,10 @@ class AnalyticsService:
return _deserialize_summary(payload)
async def _store_summary_cache(
self, organization_id: int, days: int, summary: DealSummary,
self,
organization_id: int,
days: int,
summary: DealSummary,
) -> None:
if not self._is_cache_enabled() or self._cache is None:
return
@@ -187,7 +190,9 @@ class AnalyticsService:
return _deserialize_funnel(payload)
async def _store_funnel_cache(
self, organization_id: int, breakdowns: list[StageBreakdown],
self,
organization_id: int,
breakdowns: list[StageBreakdown],
) -> None:
if not self._is_cache_enabled() or self._cache is None:
return
@@ -321,7 +326,9 @@ def _deserialize_funnel(payload: Any) -> list[StageBreakdown] | None:
async def invalidate_analytics_cache(
cache: Redis | None, organization_id: int, backoff_ms: int,
cache: Redis | None,
organization_id: int,
backoff_ms: int,
) -> None:
"""Remove cached analytics payloads for the organization."""