Cast income_delete year/month to int for url_for #27
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: bug
Location:
app.py:2864-2866Problem
year/month come back as strings and are passed to a
<int:...>route, so url_for emits query params instead of path segments -> wrong redirect.Suggested fix
year = int(request.form.get('year') or date.today().year)(same for month).Filed by automated code review.