From fac8c83c1980d65cd660218cb7e0c09858a63722 Mon Sep 17 00:00:00 2001 From: Corey Schaf Date: Sat, 12 Oct 2024 10:34:38 -0400 Subject: [PATCH] =?UTF-8?q?Updates:=20get=5Fschedule,=20adds=20oddsPartner?= =?UTF-8?q?s=20back=20to=20the=20return=20payload=20f=E2=80=A6=20(#74)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updates: get_schedule, adds oddsPartners back to the return payload for odds data --- nhlpy/api/schedule.py | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nhlpy/api/schedule.py b/nhlpy/api/schedule.py index ba6317d..5528f00 100644 --- a/nhlpy/api/schedule.py +++ b/nhlpy/api/schedule.py @@ -25,6 +25,7 @@ def get_schedule(self, date: str = None) -> dict: "nextStartDate": schedule_data["nextStartDate"], "previousStartDate": schedule_data["previousStartDate"], "date": date, + "oddsPartners": schedule_data["oddsPartners"], } matching_day = next((day for day in schedule_data["gameWeek"] if day["date"] == date), None) diff --git a/pyproject.toml b/pyproject.toml index 1260017..57bdc60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "nhl-api-py" -version = "2.11.1" +version = "2.12.0" description = "NHL API (Updated for 2024/2025) and EDGE Stats. For standings, team stats, outcomes, player information. Contains each individual API endpoint as well as convience methods as well as pythonic query builder for more indepth EDGE stats." authors = ["Corey Schaf "] readme = "README.md"