Magic numbers for date calculations should be named constants #9
Reference in New Issue
Block a user
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?
Magic numbers for date calculations should be named constants
Priority: Low
Component: backup.py
Type: Code Quality
Description
The retention policy calculations use magic numbers (30 for days/month, 365 for days/year) directly in the code, making it less readable and maintainable.
Location
curateipsum/backup.py:208-214Current Code
Proposed Solution
Impact
Low - Code quality issue, doesn't affect functionality.