From 937620e2e9d049c7ce25bd865684c1397dffa887 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 21 Mar 2026 07:03:38 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20dead=20LAST=5FWEEK=5FRATIO=20te?= =?UTF-8?q?rnary=20=E2=80=94=20both=20branches=20are=200.0=20(#19)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #19 The conditional `0.0 if PLAYER_DESCRIPTION == 'Live' else 0.0` is dead code: both branches evaluate to the same value. Simplified to a direct assignment. Co-Authored-By: Claude Sonnet 4.6 --- retrosheet_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrosheet_data.py b/retrosheet_data.py index 6f41501..8b18204 100644 --- a/retrosheet_data.py +++ b/retrosheet_data.py @@ -67,7 +67,7 @@ START_DATE = 20050403 # YYYYMMDD format - 2005 Opening Day # END_DATE = 20050531 # YYYYMMDD format - May PotM END_DATE = 20050731 # End of July 2005 POST_DATA = True -LAST_WEEK_RATIO = 0.0 if PLAYER_DESCRIPTION == "Live" else 0.0 +LAST_WEEK_RATIO = 0.0 LAST_TWOWEEKS_RATIO = 0.0 LAST_MONTH_RATIO = 0.0