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

Support for the new nhle schedule API #91

Merged
merged 18 commits into from
Nov 29, 2023
Merged

Support for the new nhle schedule API #91

merged 18 commits into from
Nov 29, 2023

Conversation

martbhell
Copy link
Owner

@martbhell martbhell commented Nov 27, 2023

was thinking to

  • add a new endpoint that manages this new schedule, but then why keep the old one it doesn't work anymore anyway?
  • decide if keeping any more weeks worth of games (like whole season) - or just keep it simple for now and keep the next week? So everything calling wtangy.se/DET/DATE+8 or higher will return NO..

Have manually uploaded the new schedule because I recall something part
of this didn't work when there wasn't an existing schedule

Removed totalgames because that is no longer in the orignal JSON.

We could re-create it by counting lists in the dict ?
schedule in testing looks almost ok :)
```
{
  "teamdates": {
      "2023-09-23": [
            [
	            "Arizo
```

Before this change teamdates was a list of gameWeeks
That > 100 days which aren't in the schedule. I'm just curious right now
what that API will return when the season is over.

Problem for another day :)
src/main.py Outdated Show resolved Hide resolved
Maybe should use another function to upload?
this is pretty bad

on.decoder.JSONDecodeError: Expecting property name enclosed in double
quotes: line 1 column 2 (char 1)" Please enter the commit message for your changes. Lines starting
pretty sure some confusion or loads vs dumps..
@martbhell martbhell merged commit ad08f04 into master Nov 29, 2023
7 checks passed
@martbhell martbhell deleted the new_schedule_api branch November 29, 2023 20:33
@martbhell martbhell changed the title a test script to test the schedule Support for the new nhle schedule API Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant