wip
This commit is contained in:
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -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)"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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'])
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"_default": {}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user