auto-sync: 2026-04-20 18:30:01
This commit is contained in:
@@ -15,7 +15,7 @@ from config import config
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
YANDEX_URL = "https://api.rasp.yandex.net/v3.0/schedule/"
|
||||
YANDEX_URL = "https://api.rasp.yandex-net.ru/v3.0/schedule/"
|
||||
|
||||
|
||||
# ── retry decorator ───────────────────────────────────────────────────────────
|
||||
@@ -50,6 +50,7 @@ def _fetch_page(yandex_code: str, target_date: date, event: str, offset: int = 0
|
||||
"event": event,
|
||||
"offset": offset,
|
||||
"limit": 100,
|
||||
"show_systems": "iata",
|
||||
}
|
||||
resp = requests.get(YANDEX_URL, params=params, timeout=30)
|
||||
resp.raise_for_status()
|
||||
|
||||
Reference in New Issue
Block a user