From 0374d6bd562a6178c984eae2f1e8c6f32051d3b8 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Mon, 16 Feb 2026 15:18:04 -0500 Subject: [PATCH] wip --- .vscode/launch.json | 4 ++-- backend/api/child_api.py | 2 +- backend/test_data/db/child_overrides.json | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 backend/test_data/db/child_overrides.json diff --git a/.vscode/launch.json b/.vscode/launch.json index a7dbdf2..e3e0be2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,7 @@ "version": "0.2.0", "configurations": [ { - "name": "Python: Flask (mac)", + "name": "Python: Flask", "type": "python", "request": "launch", "module": "flask", @@ -70,7 +70,7 @@ { "name": "Full Stack (Backend + Frontend)", "configurations": [ - "Python: Flask (mac)", + "Python: Flask", "Vue: Dev Server", "Chrome: Launch (Vue App)" ] diff --git a/backend/api/child_api.py b/backend/api/child_api.py index 3b4bdac..ab140c9 100644 --- a/backend/api/child_api.py +++ b/backend/api/child_api.py @@ -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//set-tasks', methods=['PUT']) diff --git a/backend/test_data/db/child_overrides.json b/backend/test_data/db/child_overrides.json deleted file mode 100644 index 8d16e13..0000000 --- a/backend/test_data/db/child_overrides.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "_default": {} -} \ No newline at end of file