feat: add default_has_deadline to ChoreSchedule and update related components for deadline management
Some checks failed
Chore App Build, Test, and Push Docker Images / build-and-push (push) Has been cancelled

This commit is contained in:
2026-02-27 10:42:43 -05:00
parent f5a752d873
commit 1777700cc8
8 changed files with 150 additions and 59 deletions

View File

@@ -60,6 +60,7 @@ def set_chore_schedule(child_id, task_id):
return jsonify({'error': 'day_configs must be a list', 'code': ErrorCodes.INVALID_VALUE}), 400
default_hour = data.get('default_hour', 8)
default_minute = data.get('default_minute', 0)
default_has_deadline = data.get('default_has_deadline', True)
schedule = ChoreSchedule(
child_id=child_id,
task_id=task_id,
@@ -67,6 +68,7 @@ def set_chore_schedule(child_id, task_id):
day_configs=day_configs,
default_hour=default_hour,
default_minute=default_minute,
default_has_deadline=default_has_deadline,
)
else:
interval_days = data.get('interval_days', 2)