-
Notifications
You must be signed in to change notification settings - Fork 100
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
Always return schedule data, even if gamecenter json is unavailable #68
Comments
Ok! took a crack at this. I think i did this in a way that will be unobtrusive. PLEASE take a look at my commit, and give me any feedback that you can provide. Key points:
|
This is made available under the OR you can check out dev and build locally
|
This... doesn't work. It breaks when you pass nflgame.game.Game(<eid_string>) and the game is in the future. My thoughts were to always pass the entire schedule object for the game as kwargs. Unsure the best way to do this anymore. Maybe if the extra schedule data isn't included, fetch it? This would require modifying _search_schedule_by_eid, or something along those lines. |
- _search_schedule by eid - _search_schedule doesn't require year param now - IF the gamecenter data isn't available... * Check to see if the schedule data was in the kwargs * If not > search for the data by EID.
|
Fixed _search_schedule() by eid: It was failing b/c we are in pre-season and the default is REG. I decided to just return a flat dict of the schedule data when an eid matches to simplify this. |
Ruminating on if these changes are worth it.... I may just implement a live-esque script that just searches the schedule by week. |
- _search_schedule by eid - _search_schedule doesn't require year param now - IF the gamecenter data isn't available... * Check to see if the schedule data was in the kwargs * If not > search for the data by EID.
I'm still having issues with this. It seems as though there are two |
@nczeak - Can you submit a PR or give some line numbers? I'd love to have more confidence in pushing this code beyond a "beta release" |
I have strict requirements regarding the timing of games, namely, I want to execute code when a game is exactly 10 minutes out. Over the last two years this has been inconsistent; I suspect it is this line, and that the game-center json is unavailable.
As I do not want to re-impliment nflgame.live in my project that uses nflgame; My inclination is to have nflgame.game.Game return game meta data even when there is no game-center json. I am trying to implement this with as little side effects as I can, but this likely has a LOT of implications throughout the code.
The text was updated successfully, but these errors were encountered: