diff --git a/scheduler.py b/scheduler.py index 370a429..4c1d5db 100644 --- a/scheduler.py +++ b/scheduler.py @@ -316,7 +316,7 @@ def live_match_worker(match_row: dict, stop_event: threading.Event) -> None: break try: - data = fetch_match_live_data(match_id) + data = fetch_match_live_data(external_id) errors_in_row = 0 except NotImplementedError: log(f"[worker] fetch_match_live_data() is not implemented for match_id={match_id}") @@ -393,7 +393,7 @@ def watch_today_matches_once() -> None: log(f"[matches_loop] today matches found: {len(matches)}") for match_row in matches: - match_id = match_row["external_id"] + match_id = match_row["id"] if not should_start_worker(match_row, now_naive): continue