From fffb7c8170454720622089cf794ebcb106245e4d Mon Sep 17 00:00:00 2001 From: Robert Clark Date: Sun, 20 Mar 2022 15:52:24 -0500 Subject: [PATCH] Update fumbles recovered for TD (#715) The fumbles recovered for TD field was incorrectly pointing to the yards recovered from fumble field. Signed-Off-By: Robert Clark --- sportsipy/nfl/constants.py | 2 +- tests/integration/roster/test_nfl_roster.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sportsipy/nfl/constants.py b/sportsipy/nfl/constants.py index f764862a..94223b07 100644 --- a/sportsipy/nfl/constants.py +++ b/sportsipy/nfl/constants.py @@ -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"]', diff --git a/tests/integration/roster/test_nfl_roster.py b/tests/integration/roster/test_nfl_roster.py index b23997e3..085f28be 100644 --- a/tests/integration/roster/test_nfl_roster.py +++ b/tests/integration/roster/test_nfl_roster.py @@ -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, @@ -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, @@ -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, @@ -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,