Compare commits
2 Commits
1aff366fd8
...
3848be32e8
| Author | SHA1 | Date | |
|---|---|---|---|
| 3848be32e8 | |||
| 0ab40f85a4 |
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user