This commit is contained in:
2026-02-16 15:18:04 -05:00
parent b538782c09
commit 0ab40f85a4
3 changed files with 3 additions and 6 deletions

View File

@@ -166,7 +166,7 @@ def assign_task_to_child(id):
if task_id not in child.get('tasks', []):
child['tasks'].append(task_id)
child_db.update({'tasks': child['tasks']}, ChildQuery.id == id)
return jsonify({'message': f'Task {task_id} assigned to {child['name']}.'}), 200
return jsonify({'message': f"Task {task_id} assigned to {child.get('name')}."}), 200
# python
@child_api.route('/child/<id>/set-tasks', methods=['PUT'])

View File

@@ -1,3 +0,0 @@
{
"_default": {}
}