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

Game gsis_id = 2017111911 missing in schedule.json (Ochawkeye issue #298) #308

Open
MargareeMan opened this issue Nov 25, 2018 · 0 comments

Comments

@MargareeMan
Copy link

MargareeMan commented Nov 25, 2018

@ochawkeye provided a link to his schedule.json file in issue #298. This was greatly appreciated and allowed me to reinstall and update my nfldb installation.

However, his schedule.json file is missing an entry for gsis_id 2017111911 (TB at MIA) .

When nfldb-update is run with this incomplete schedule.json file, the data for this game is not inserted into the game, drive, play, or play_player tables and the agg_play table is not updated to contain the aggregate stats.

The relevant game data is:

[
"2017111911",
{
"away": "TB",
"day": 19,
"eid": "2017111911",
"gamekey": "57241",
"home": "MIA",
"month": 11,
"season_type": "REG",
"time": "1:00",
"wday": "Sun",
"week": 11,
"year": 2017
}
],

If you insert this into your schedule.json file and run nfldb-update, the game record is inserted into nfldb; but no game data is updated.

Therefore, I am providing the necessary files to insert into nfldb. (if you already updated schedule.json and run nfldb-update; then first delete the empty game record with:

DELETE FROM game WHERE gsis_id = '2017111911'

Then import the data from the .tsv files at:

" https://github.com/MargareeMan/Data-for-nfldb-gsis_id-2017111911"

(As I seem to be having trouble with the link, I am uploading the files here. I had trouble importing the last drive of the game (drive_id 25) due to a null value. So, one of the files is a SQL INSERT for this record.

drive_id__ 25 FROM_drive__WHERE_gsis_id__2017111911.txt
FROM_agg_play__WHERE_gsis_id__2017111911.txt
FROM_drive__WHERE__gsis_id__2017111911.txt
FROM_game__WHERE_gsis_id__2017111911.txt
FROM_play__WHERE_gsis_id__20171119110.txt
FROM_play_player__WHERE_gsis_id__2017111911.txt

INSERT for drive_id 25.txt

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

1 participant