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

Jaguars acronym error week 1 2016 #339

Open
naymikm opened this issue Oct 7, 2017 · 2 comments
Open

Jaguars acronym error week 1 2016 #339

naymikm opened this issue Oct 7, 2017 · 2 comments

Comments

@naymikm
Copy link

naymikm commented Oct 7, 2017

The game.home value is 'JAC' but the game.schedule['home'] is 'JAX' The acronym used for filtering plays must be 'JAC' to work but the filter used by game must be 'JAX'. Otherwise it returns Nonetype.

games=nflgame.games(2016, week=1, home='JAX',away='JAX')
for g in games:
   print(g.home,g.away)
   print(g.schedule)

(u'JAC', u'GB')
{u'week': 1, u'meridiem': u'PM', u'gamekey': u'56905', u'season_type': u'REG', u'away': u'GB', u'year': 2016, u'month': 9, u'eid': u'2016091103', u'time': u'1:00', u'home': u'JAX', u'wday': u'Sun', u'day': 11}


games=nflgame.games(2016, week=1, home='JAX',away='JAX')
plays = nflgame.combine_plays(games)
for play in plays.filter(team='JAC'):
    print(play)

(JAC, JAC 18, Q1, 1 and 10) (14:56) T.Yeldon up the middle to JAC 24 for 6 yards (J.Ryan).
(JAC, JAC 24, Q1, 2 and 4) (14:16) (Shotgun) T.Yeldon right guard to JAC 29 for 5 yards (B.Martinez).
@naymikm
Copy link
Author

naymikm commented Oct 7, 2017

Week 2 and onward 'JAX' must be used in the play filter and 'JAC' no longer works

@ariannedee
Copy link

You should add this to your nfldb:

insert into team values('JAX','Jacksonville', 'Jaguars');
insert into team values ('LAC', 'Los Angeles', 'Chargers');

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

2 participants