-
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
Key (pos_team)=(JAX) is not present in table "team". #194
Comments
Having the same issue. |
@vhaar1 I did the following as a work-around.
|
That worked great. Thanks. |
Are you up to date with |
@leighlondon I am up-to-date. I tried an upgrade prior to posting this issue.
The JAX insert into the team table was just a work-around. There was data coming into the play table. You can see it with this query:
|
Hi all, I am receiving the same error. This is on a new install of nfldb
I performed the update: I changed the lines in Then I ran Which returns a different error, this time JAC: |
I had the same problem and did the manual insert to resolve it. It looks like the real problem is that this week the game table is using JAC but the play table is using JAX. But in previous weeks it's JAC in both places. That is why just doing an update doesn't fix it, but just switches where it finds the problem. In my case I added JAX to the team table, so that I have both JAC and JAX. Then on my side of the application wrote some code to convert JAX to JAC. But all of this is a workaround and it appears that there will have to be a master adjustment to account for both JAC or JAX coming from GameCenter. (I suspect that ARI or ARZ could be a potential problem in the future as well) |
Hi @pla1 , sorry if this is obvious, but where did you place this work around? In one of the .py files?
|
@kennysushi I executed the insert statement after logging-in on the server via the psql command:
|
Ok so here's my workaround. I reset my install, but I didn't like the idea of keeping that inserted row in the teams table so I changed all occurrences of 'JAX' in the database to 'JAC' and then deleted the row from the teams table. Queries below: If you'd like, you can verify that only the
Update Delete 'JAX' value from |
I hope to have this fixed before the next game. I think the best thing to do is to settle on |
OK, I'm lost. |
You would need to do that query in postgres the database, if you are not a On Sep 25, 2016 6:17 PM, "mrg1999" [email protected] wrote:
|
I seem to get this error with LA as well. Just notifying.
|
When is this going to be fixed? |
I used the work around below and it's been working fine since then. I assume at some point I'll have to roll back. IIRC you must navigate to the folder where "psql" is located (usually the PostgreSQL folder) via cmd.exe and then run the insert statement via:
|
the JAX insert ( It might be up to the end user whether to update older records to match or to query by name (e.g. |
KennySushi and mlloyd5, thank you very much for your help. |
Hi! I just did a fresh install, new DB and all, and got the error reported in this issue. I opted for the simple insert statement as a work-around for now. Has Best regards. |
What I did was create 3 different scripts and save them in the Create a script named Then create a script named Then create another script named My program code runs as thus: This seems to be the best fix for now and I suspect it wont hurt anything to keep the code if/when a fix is implemented. |
@mrg1999 |
Here's the script I'm using. Hopefully @BurntSushi finds the time for a permanent fix soon!
I'm running ubuntu and saved it as |
Looking forward to next season... |
Hi - Would this still be an issue on a new install? Seeding the database with the file at the bottom of the readme and then running nfldb-update yields this error. Am I doing something wrong or is that expected? Thanks!
After somehow missing mrg1999's comment, that's what I ended up doing. Subsequent run of nflupdate, ran fine. |
@verchirl you need to do what @mylloyd5 said and update your database with the entry JAX in the team table. then run the nfldb-update script. Have you used postgres before? If not I can give you a more detailed walk through. |
@kevin2107 - Thanks Kevin. I ended up doing the table insert/update/delete. I was just worried I had installed improperly and was supposed to receive the fix by other (python package?) means. |
Getting the following from nfldb-update. TIA, PLA
The text was updated successfully, but these errors were encountered: