-
Notifications
You must be signed in to change notification settings - Fork 263
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
Missing postseason games? #258
Comments
Thanks for the prompt response. I ended up rebuilding the 2015 and 2016 schedules as mentioned in another post, and it appears to be working well. I'll be sure to look at closed issues before posting next time (this is my first time using Git and I only looked at the open ones). |
Not your fault. Presumably when issues get "closed" that means the issue has gone away. With the packaged version of some of these files being so dated, though, some of those old issue tend to crop back up on new installations. |
So I've run nflgame's update-players and it works fine. When I run this though: db = nfldb.connect() Jay Cutler is listed as being Chicago's QB, when he was recently traded to Miami. Do I need to take some steps for compatibility between running the nflgame update-players and accessing the database? |
If anyone stumbles on this later, you can solve the above issue by resetting the last_roster_download metadata in the DB as follows. Then when you run nfldb-update, it will pull the correct roster using nflgame. To get the info into the DB, it's not enough to just run update-players on the nflgame side. psql nfldb -c "SET TIME ZONE 'UTC'; UPDATE meta SET last_roster_download = '2000-01-01 00:00:00+00';" |
Referencing Jay Cutler in a thread about postseason anything is probably where part of your problem lies. 😏 import nfldb
db = nfldb.connect()
q = nfldb.Query(db)
jay = q.player(full_name="Jay Cutler").as_players()[0]
print jay
|
Could anyone elucidate if they have a similar issue as me?
If I run the following code:
for year in range(2009,2017):
db = nfldb.connect()
q = nfldb.Query(db)
print "games played in ", year, ": ", len(q.game(season_type='Postseason', season_year=year).as_games())
which tells me how many postseason games were played, I get the following:
games played in 2009 : 11
games played in 2010 : 11
games played in 2011 : 11
games played in 2012 : 11
games played in 2013 : 11
games played in 2014 : 11
games played in 2015 : 5
games played in 2016 : 0
If search for regular season games, the numbers all match up.
Can I conclude the DB is missing the postseason? I've update the database with nfldb-update (after fixing the JAX and LAC issue) and the problem persists.
Cheers!
The text was updated successfully, but these errors were encountered: