e
This commit is contained in:
parent
8a5a52630f
commit
00000d99ac
3 changed files with 39 additions and 36 deletions
|
|
@ -311,7 +311,7 @@ async def main(client: httpx.AsyncClient) -> None:
|
|||
|
||||
urls[key] = cached_urls[key] = entry
|
||||
|
||||
if (new_count := len(cached_urls) - cached_count) > 0:
|
||||
if new_count := len(cached_urls) - cached_count:
|
||||
CACHE_FILE.write_text(json.dumps(cached_urls, indent=2), encoding="utf-8")
|
||||
|
||||
log.info(f"Collected and cached {new_count} new event(s)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue