Skip to content

Commit

Permalink
Merge commit '8f1baaa038cd762e56444213723097daa49ceb2f' into rm-old-c…
Browse files Browse the repository at this point in the history
…ache
  • Loading branch information
peterdudfield committed Jan 22, 2024
2 parents 463b503 + 8f1baaa commit 9528fa2
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 9528fa2

Please sign in to comment.