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

4
.vscode/launch.json vendored
View File

@@ -2,7 +2,7 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Python: Flask (mac)", "name": "Python: Flask",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"module": "flask", "module": "flask",
@@ -70,7 +70,7 @@
{ {
"name": "Full Stack (Backend + Frontend)", "name": "Full Stack (Backend + Frontend)",
"configurations": [ "configurations": [
"Python: Flask (mac)", "Python: Flask",
"Vue: Dev Server", "Vue: Dev Server",
"Chrome: Launch (Vue App)" "Chrome: Launch (Vue App)"
] ]

View File

@@ -166,7 +166,7 @@ def assign_task_to_child(id):
if task_id not in child.get('tasks', []): if task_id not in child.get('tasks', []):
child['tasks'].append(task_id) child['tasks'].append(task_id)
child_db.update({'tasks': child['tasks']}, ChildQuery.id == 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 # python
@child_api.route('/child/<id>/set-tasks', methods=['PUT']) @child_api.route('/child/<id>/set-tasks', methods=['PUT'])

View File

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