Harden income_ytd year filtering (string prefix match) #30
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?
Severity: low
Category: tech-debt
Location:
income.py:56Problem
mk.startswith(str(year))is fragile and would mismatch malformed month keys, corrupting YTD totals.Suggested fix
Parse the year:
mk.partition('-')[0] != str(year)continue; validate month keys at write time.Filed by automated code review.