Extract shared storage helper (DATA_DIR/load/save duplicated 7x) #31
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: medium
Category: tech-debt
Location:
bills.py, sinking.py, mortgage.py, assets.py, debts.py, income.pyProblem
Every module re-declares DATA_DIR and identical load/save bodies; month_key and OWNER_COLORS are each duplicated twice. A storage-strategy change must touch every module.
Suggested fix
Create storage.py with DATA_DIR, atomic load_json/save_json, month_key, OWNER_COLORS; import everywhere.
Filed by automated code review.