question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jaguars player missing team name

See original GitHub issue

xpost: https://github.com/BurntSushi/nfldb/issues/154

import nfldb
db = nfldb.connect()
q = nfldb.Query(db)
q.game(season_year=2015, season_type='Regular', team='JAC', week=1)
q.play(play_id=3823)

for play in q.as_plays():
    print play
    for pp in play.play_players:
        print '\t', pp.team, pp.player, pp

print '-'*79

import nflgame
games = nflgame.games(year=2015, week=1, home='JAC', away='JAC')
plays = nflgame.combine_plays(games)
for play in plays.filter(playid='3823'):
    print play
    for p in play.players:
        print '\t', p.team, p.player, p.formatted_stats()
(JAC, OWN 20, Q4, 1 and 10) (2:41) (Shotgun) B.Bortles pass short middle intended for C.Harbor INTERCEPTED by T.Davis (M.Addison) at JAC 20. T.Davis to JAC 19 for 1 yard (T.Yeldon).
        JAC Blake Bortles (UNK, UNK) {'passing_int': 1, 'passing_att': 1, 'passing_incmp': 1}
        CAR Thomas Davis (CAR, OLB) {'defense_pass_def': 1, 'defense_int': 1, 'defense_int_yds': 1}
        JAC T.J. Yeldon (UNK, UNK) {'defense_tkl': 1}
        JAC Clay Harbor (NE, TE) {'receiving_tar': 1}
        CAR Mario Addison (CAR, DE) {'defense_pass_def': 1}
-------------------------------------------------------------------------------
(JAC, JAC 20, Q4, 1 and 10) (2:41) (Shotgun) B.Bortles pass short middle intended for C.Harbor INTERCEPTED by T.Davis (M.Addison) at JAC 20. T.Davis to JAC 19 for 1 yard (T.Yeldon).
        CAR Mario Addison (DE, CAR) defense_pass_def: 1
        JAC Clay Harbor (TE, NE) receiving_tar: 1
        JAC T.J. Yeldon (, ) defense_tkl: 1
        CAR Thomas Davis (OLB, CAR) defense_int: 1, defense_int_yds: 1, defense_pass_def: 1
        JAC Blake Bortles (, ) passing_int: 1, passing_att: 1, passing_incmp: 1, passing_incmp_air_yds: 0

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
BurntSushicommented, Jul 13, 2016

@weixiyen Yes, I’ll sort all of the critical issues out before long. I suspect preseason will be my forcing function.

1reaction
BrutalSimplicitycommented, Sep 6, 2016

If you are having trouble getting this to update the db (and perhaps have a draft date looming), you need to force it to update the rosters by setting the player-interval to 0.

c:\anaconda2\scripts>python nfldb-update --player-interval 0
-------------------------------------------------------------------------------
STARTING NFLDB UPDATE AT 2016-09-06 11:31:31.513000
Connecting to nfldb... done.
Setting timezone to UTC... done.
Updating player JSON database... (last update was 2016-09-06 16:28:46.059000+00:00)
Loading games for POST 2015 week 5
Downloading team rosters...
33/33 complete. (100.00%)
Done!
Read more comments on GitHub >

github_iconTop Results From Across the Web

Aidan Hutchinson on being passed over by Jaguars - NFL.com
Despite the quip, Hutchinson is happy to play for his hometown team and was named NFL Defensive Rookie of the Month for November....
Read more >
Travon Walker - Jacksonville Jaguars
Can't-Miss Play: Travon Walker's first strip-sack takeaway of career has Jags in prime scoring position ... Jacksonville Jaguars linebacker Travon Walker's first ...
Read more >
Jaguars: 1st and 10; how team's original 10 players had mixed ...
Sutton and Collons missed what remains an indelible memory for everyone who was part of the '95 Jaguars: a brutal, heat-infested training camp...
Read more >
Jacksonville Jaguars Fantasy Football Team Names (2022)
What are the best fantasy football team names for Jacksonville Jaguars fans in 2022? Look no further. Whether you're looking for great, ...
Read more >
2022 Jacksonville Jaguars Roster - NFL Players - CBS Sports
NO Player POS HT WT DOB (AGE) EXP College 96 A. GotsisAdam Gotsis DE 6‑4 287 9/23/1992 (30) 7 Georgia... 98 C. PetersCorey Peters DE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found