Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jan 15, 2024
1 parent 93b1c64 commit 9c2b9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pv_site_api/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


def remove_old_cache(
last_updated: dict, response:dict, remove_cache_time_seconds: float = delete_cache_time_seconds
last_updated: dict, response: dict, remove_cache_time_seconds: float = delete_cache_time_seconds
):
"""
Remove old cache entries from the cache
Expand All @@ -25,7 +25,7 @@ def remove_old_cache(
:param remove_cache_time_seconds: the amount of time, after which the cache should be removed
"""
now = datetime.now(tz=timezone.utc)
logger.info('Removing old cache entries')
logger.info("Removing old cache entries")
keys_to_remove = []
for key, value in last_updated.items():
if now - timedelta(seconds=remove_cache_time_seconds) > value:
Expand Down

0 comments on commit 9c2b9df

Please sign in to comment.