4 Commits

Author SHA1 Message Date
3f6240b6bd Fix: Add missing assignment_type field to chore API response
Fixed get_chore_with_assignments() to include assignment_type in dict.
This resolves the ResponseValidationError where assignment_type was
missing from API responses despite being present in the database.
2026-02-04 13:41:14 +11:00
e079baa865 Fix: Convert empty string to None for due_date field in update_chore
When updating a chore with an empty due_date field, SQLite was throwing an error
because it only accepts Python datetime and date objects, not empty strings.

This fix checks if due_date is an empty string and converts it to None before
setting the attribute, preventing the TypeError.

Error fixed: "SQLite DateTime type only accepts Python datetime and date objects as input"
2026-02-02 11:48:36 +11:00
fb53891bc2 Fix import: get_current_user from auth module not security 2026-01-27 23:05:11 +11:00
ecf14bda69 Add chores API endpoints with CRUD operations 2026-01-27 22:27:41 +11:00