e
This commit is contained in:
parent
856ddda848
commit
00000d9186
10 changed files with 36 additions and 440 deletions
|
|
@ -1,10 +1,9 @@
|
|||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
import httpx
|
||||
|
||||
from .utils import LOGOS, get_logger, load_cache, now
|
||||
from .utils import LOGOS, get_logger, load_cache, now, write_cache
|
||||
|
||||
log = get_logger(__name__)
|
||||
|
||||
|
|
@ -62,6 +61,6 @@ async def main(client: httpx.AsyncClient) -> None:
|
|||
|
||||
urls[key] = entry
|
||||
|
||||
CACHE_FILE.write_text(json.dumps(urls, indent=2), encoding="utf-8")
|
||||
write_cache(CACHE_FILE, urls)
|
||||
|
||||
log.info(f"Cached {len(urls)} event(s)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue