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

2016 Data Not Showing #243

Open
goobs-746 opened this issue Jul 20, 2017 · 3 comments
Open

2016 Data Not Showing #243

goobs-746 opened this issue Jul 20, 2017 · 3 comments

Comments

@goobs-746
Copy link

I am not great with code so might have been something on my end when installing/setting up, but is there any reason why I would have data for all years but 2016 available? I have tried running nfldb-update a few times but the problem persists. It has the schedule for all games, but scores and play data don't have anything there.

@gatortim
Copy link

gatortim commented Aug 5, 2017

Seeing similar behaviour. Also, update continuously fails:
psycopg2.IntegrityError: insert or update on table "play" violates foreign key constraint "play_pos_team_fkey"
DETAIL: Key (pos_team)=(JAX) is not present in table "team".

JAC is present in the table, but JAX is not.

Is there a newer version of nfldb.sql that is required? I tried downloading the latest nfldb.sql but to no avail.
Reinstalling from scratch did not seem to resolve.

@gatortim
Copy link

gatortim commented Aug 5, 2017

As postgresql nfldb user:
INSERT INTO team(team_id, city, name) VALUES('JAX', 'Jacksonville', 'Jaguars');

Then run update (again). It took me two runs of update.

Still need to alter any other constants for Jacksonville after the update.

@matthewcampbell10
Copy link

Did you find a solution to this? I am having the same issue. I am relatively knew to all of this stuff so not sure how i would run INSERT INTO team(team_id, city, name) VALUES('JAX', 'Jacksonville', 'Jaguars');
Is that done from the command prompt or postgresql?

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

No branches or pull requests

3 participants