Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 22, 2024
1 parent 8352f63 commit 8f1baaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 8f1baaa

Please sign in to comment.