Cast income_delete year/month to int for url_for #27

Open
opened 2026-06-06 19:58:14 +00:00 by tonym · 0 comments

Severity: low
Category: bug
Location: app.py:2864-2866

Problem

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.

**Severity:** low **Category:** bug **Location:** `app.py:2864-2866` ### Problem 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._
tonym added the
bug
severity:low
labels 2026-06-06 19:58:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bonna61/Moon-Household-Budget#27
No description provided.