From 8f1baaa038cd762e56444213723097daa49ceb2f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:20:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache.py b/src/cache.py index b8ed4f97..bfc0a007 100644 --- a/src/cache.py +++ b/src/cache.py @@ -74,8 +74,8 @@ def wrapper(*args, **kwargs): # noqa request = route_variables.get("request", None) save_api_call_to_db(session=session, user=user, request=request) - if 'background_tasks' in route_variables: - route_variables['background_tasks'].add_task(cache_response, last_updated) + if "background_tasks" in route_variables: + route_variables["background_tasks"].add_task(cache_response, last_updated) # drop session and user for var in ["session", "user", "request"]: