-
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
Los Angles Charger Issues #252
Comments
I think insert into team values('LAC','Los Angeles', 'Chargers'); should fix it. |
Just to confirm, what @javaschmava says is true.
Performed this:
And re-ran
|
This is fine for scoring, but I couldn't get it to update rosters. I had to remove SD from init.py to get the rosters to update correct. |
That's interesting. I still have
in my |
As mentioned in nflgame #311, roster updates occur in the order that the teams appear in |
Hrm arranging the 'SD' into an earlier position in the list seems not to work for me. After completing:
nfldb-update worked just fine. I also see in the database both records of 'SD' and 'LAC'
but when I go to connect & pull data from nfldb the team is still showing up as 'UNK':
That being said I do see 'SD' showing up correctly if I query for 2016. Is there something I am missing here? |
That game representation comes from here: https://github.com/BurntSushi/nfldb/blob/master/nfldb/types.py#L2458-L2464 The away team in this case comes from here: So it looks like there's one more list the LA Chargers team needs to get added: Since |
In team.py I see there's two : teams1 and teams2. I see the "LA Rams" were added to team2 as the only entry. Should I add LAC there? This is also very odd, I seem to be able to generate the correct schedule for week 2... but not for week 1...?
Is this something where nflgame or nfldb has already input the week 1 data as UNK and is only updating for week 2? |
For these debugging steps, I used the following code which prints out the game information for each of the Chargers first three opponents in 2017. import nfldb
db = nfldb.connect()
q = nfldb.Query(db)
q.game(season_year=2017, week=1, team='DEN', season_type='Regular')
for game in q.as_games():
print game
q = nfldb.Query(db)
q.game(season_year=2017, week=2, team='MIA', season_type='Regular')
for game in q.as_games():
print game
q = nfldb.Query(db)
q.game(season_year=2017, week=3, team='KC', season_type='Regular')
for game in q.as_games():
print game
teams2 = [
['LA', 'Los Angeles', 'Rams', 'Los Angeles Rams', 'L.A.'],
['LAC', 'Los Angeles C', 'Chargers', 'Los Angeles Chargers', 'L.A.C']
]
|
As always @ochawkeye, thank you for your help: specifically calling the --update-schedules fixed this issue.
|
@ochawkeye's team.py fix worked for me, but since I had already update nfldb LAC players were showing as UKN. I had to remove the LAC games and rerun nfldb-update.
|
So, after reading about LA Rams changes last year, I was able to add the Chargers for the schedule and it works great. Now the player table still shows on 'SD' instead of 'LAC'. I ran update-players.py, and players.json still shows as 'SD'. I assume this is an issue with nfl.com, but you know what happens when you assume. :)
If it is an nfl.com issue, when have you seen it rectified in the past?
If it isn't an nfl.com issue, what can I do to make the players show up on 'LAC'?
The text was updated successfully, but these errors were encountered: