Closed mesee298 closed 7 years ago
One other thing. I'm also using NFLDB, so if that would be better, please let me know how I should code that.
The first step to debug this is to look at the raw JSON data. If the player isn't recorded there, then nflgame has no hope of doing it correctly. Please remember that the undocumented JSON that nflgame uses from NFL.com isn't 100% accurate. You'll need to dig and figure out where the discrepancy is.
Kelce recorded a stat on the play you list (he recorded a .receiving_tar
).
Neither Irving nor Erving recorded any statistics in the play they were involved in. As far as nflgame
is concerned, they were involved in that play just as much as you or I was.
Okay. Thanks for the info.
I have the following code:
It comes back with the following data:
As you can see, if only one player was ejected, then it shows correctly, but if more than one player is ejected, it won't show those player as part of the play.
Is there something I'm doing wrong, or a better way of doing this?