Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule API Adjustments #71

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Schedule API Adjustments #71

merged 2 commits into from
Oct 8, 2024

Conversation

coreyjs
Copy link
Owner

@coreyjs coreyjs commented Oct 8, 2024

Schedule API: schedule.py

  • get_schedule(date) no longer has an optional parameter 'date'. This is now a required parameter. This method now will reduce down the response payload to only the games for the supplied date. This is a change from the old way. Old functionality has been moved to 'get_weekly_schedule'

  • get_weekly_schedule(date?) has been added to return the weekly games, for the week of the supplied date. Data is still optional but defaults to the NHL interrepation of 'now' or 'today'.

  • Adds new tests to cover functionality in these updated schedule endpoints

closes #70

Schedule API: schedule.py
- get_schedule(date) no longer has an optional parameter 'date'.  This is now a required parameter.  This method now will reduce down the response payload to only the games for the supplied date.  This is a change from the old way.  Old functionality has been moved to 'get_weekly_schedule'
- get_weekly_schedule(date?) has been added to return the weekly games, for the week of the supplied date.  Data is still optional but defaults to the NHL interrepation of 'now' or 'today'.

- Adds new tests to cover functionality in these updated schedule endpoints
@coreyjs coreyjs added bug Something isn't working enhancement New feature or request labels Oct 8, 2024
@coreyjs coreyjs self-assigned this Oct 8, 2024
@coreyjs coreyjs merged commit 503a7e8 into main Oct 8, 2024
1 check passed
@coreyjs coreyjs deleted the 70-schedule-api branch October 8, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

client.schedule.get_schedule(date=today) returns more than I would have expected.
1 participant