e
This commit is contained in:
parent
00000d91bb
commit
00000d9a4d
6 changed files with 13 additions and 24 deletions
|
|
@ -128,8 +128,7 @@ async def get_events(
|
|||
|
||||
if not (api_data := API_FILE.load(per_entry=False, index=-1)):
|
||||
api_data = await refresh_api_cache(
|
||||
client,
|
||||
urljoin(url, "api/matches/all-today"),
|
||||
client, urljoin(url, "api/matches/all-today")
|
||||
)
|
||||
|
||||
API_FILE.write(api_data)
|
||||
|
|
@ -172,8 +171,8 @@ async def get_events(
|
|||
if not sources:
|
||||
continue
|
||||
|
||||
skip_sources = {"admin", "alpha", "bravo"}
|
||||
valid_sources = [d for d in sources if d.get("source") not in skip_sources]
|
||||
skip_types = {"admin", "alpha", "bravo"}
|
||||
valid_sources = [d for d in sources if d.get("source") not in skip_types]
|
||||
|
||||
if not valid_sources:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue