Guard against None rating objects in pitcher sorting functions #13
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
`app/routers_v2/teams.py:600-615` and `679-694`. `get_total_ops` calls `vlval.obp` directly after `get_or_none()`. If rating row doesn't exist, AttributeError produces a 500 response. DH-finding path correctly catches this but pitcher paths don't.
Priority: high
Fixed in PR #50: #50
Added
Nonechecks forvlval/vrvalin bothget_total_opsclosures (sort_pitchersand the innersort_starters). When either rating row is missing, the function returnsfloat("inf")so the pitcher sorts to the end of the list rather than raising anAttributeErrorand producing a 500 response.