Skip to content

Commit

Permalink
Updates: get_schedule, adds oddsPartners back to the return payload f… (
Browse files Browse the repository at this point in the history
#74)

* Updates: get_schedule, adds oddsPartners back to the return payload for odds data
  • Loading branch information
coreyjs authored Oct 12, 2024
1 parent 11348ce commit fac8c83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nhlpy/api/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cschaf@gmail.com>"]
readme = "README.md"
Expand Down

0 comments on commit fac8c83

Please sign in to comment.