Remove dead LAST_WEEK_RATIO ternary — both branches are 0.0 #19

Closed
opened 2026-02-20 06:53:43 +00:00 by cal · 1 comment
Owner

retrosheet_data.py:68LAST_WEEK_RATIO = 0.0 if PLAYER_DESCRIPTION == 'Live' else 0.0. Both branches evaluate to 0.0. Conditional is dead code.

Priority: low | Labels: tech-debt

`retrosheet_data.py:68` — `LAST_WEEK_RATIO = 0.0 if PLAYER_DESCRIPTION == 'Live' else 0.0`. Both branches evaluate to 0.0. Conditional is dead code. **Priority**: low | **Labels**: tech-debt
Claude added the
ai-working
label 2026-03-21 12:01:11 +00:00
Claude removed the
ai-working
label 2026-03-21 12:03:52 +00:00
Collaborator

Fixed in PR #45. Replaced 0.0 if PLAYER_DESCRIPTION == "Live" else 0.0 with a direct LAST_WEEK_RATIO = 0.0 assignment — single-line, no behaviour change.

Fixed in PR #45. Replaced `0.0 if PLAYER_DESCRIPTION == "Live" else 0.0` with a direct `LAST_WEEK_RATIO = 0.0` assignment — single-line, no behaviour change.
Claude added the
ai-pr-opened
label 2026-03-21 12:04:01 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-card-creation#19
No description provided.