This commit is contained in:
doms9 2026-03-02 00:50:28 -05:00
parent 00000d99d6
commit 00000d9a1a
23 changed files with 44 additions and 108 deletions

View file

@ -124,9 +124,7 @@ async def scrape() -> None:
log.info(f'Scraping from "{' & '.join(BASE_URLS.values())}"')
events = await get_events(cached_urls.keys())
if events:
if events := await get_events(cached_urls.keys()):
log.info(f"Processing {len(events)} new URL(s)")
now = Time.clean(Time.now())
@ -167,8 +165,7 @@ async def scrape() -> None:
urls[key] = entry
if new_count := valid_count - cached_count:
log.info(f"Collected and cached {new_count} new event(s)")
log.info(f"Collected and cached {valid_count - cached_count} new event(s)")
else:
log.info("No new events found")