We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b49271 commit a06cd6cCopy full SHA for a06cd6c
src/hibp_downloader/commands/hibp_download.py
@@ -265,7 +265,7 @@ async def pwnedpasswords_get_and_store_async(
265
if metadata_existing.data_source:
266
if metadata_existing.server_timestamp:
267
local_ttl = (
268
- local_cache_ttl - (datetime.now().astimezone() - metadata_existing.server_timestamp).seconds # type: ignore[operator]
+ local_cache_ttl - (datetime.now().astimezone() - metadata_existing.server_timestamp).total_seconds() # type: ignore[operator]
269
)
270
if local_ttl > 0:
271
logger_.debug(f"Skipping {prefix}; local-cache has {local_ttl} time-to-live")
0 commit comments