Skip to content

Commit

Permalink
Update fumbles recovered for TD (#715)
Browse files Browse the repository at this point in the history
The fumbles recovered for TD field was incorrectly pointing to the yards
recovered from fumble field.

Signed-Off-By: Robert Clark <[email protected]>
  • Loading branch information
roclark authored Mar 20, 2022
1 parent 1fd1387 commit fffb7c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sportsipy/nfl/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
'fumbles_forced': 'td[data-stat="fumbles_forced"]',
'fumbles_recovered': 'td[data-stat="fumbles_rec"]',
'yards_recovered_from_fumble': 'td[data-stat="fumbles_rec_yds"]',
'fumbles_recovered_for_touchdown': 'td[data-stat="fumbles_rec_yds"]',
'fumbles_recovered_for_touchdown': 'td[data-stat="fumbles_rec_td"]',
'sacks': 'td[data-stat="sacks"]',
'tackles': 'td[data-stat="tackles_solo"]',
'assists_on_tackles': 'td[data-stat="tackles_assists"]',
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/roster/test_nfl_roster.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def setup_method(self):
'fumbles': 102,
'fumbles_forced': 0,
'fumbles_recovered': 29,
'fumbles_recovered_for_touchdown': -111,
'fumbles_recovered_for_touchdown': 0,
'game_winning_drives': 43,
'games': 252,
'games_started': 251,
Expand Down Expand Up @@ -222,7 +222,7 @@ def setup_method(self):
'fumbles': 5,
'fumbles_forced': 0,
'fumbles_recovered': 3,
'fumbles_recovered_for_touchdown': -12,
'fumbles_recovered_for_touchdown': 0,
'game_winning_drives': 2,
'games': 16,
'games_started': 16,
Expand Down Expand Up @@ -351,7 +351,7 @@ def setup_method(self):
'fumbles': 0,
'fumbles_forced': 2,
'fumbles_recovered': 5,
'fumbles_recovered_for_touchdown': 8,
'fumbles_recovered_for_touchdown': 0,
'game_winning_drives': None,
'games': 99,
'games_started': 85,
Expand Down Expand Up @@ -1279,7 +1279,7 @@ def test_dataframe_returns_dataframe(self, *args, **kwargs):
'fumbles': 102,
'fumbles_forced': 0,
'fumbles_recovered': 102,
'fumbles_recovered_for_touchdown': -111,
'fumbles_recovered_for_touchdown': 0,
'game_winning_drives': 43,
'games': 252,
'games_started': 251,
Expand Down

0 comments on commit fffb7c8

Please sign in to comment.