Skip to content
Snippets Groups Projects
Commit 3e5bee31 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

api: fixed deletion of tasks and subtasks (v2.3.1)

parent a8e884d9
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ def construct_blueprint(database):
if not __subtask_exists(subTaskID):
return jsonify({"success": False, "msg": "No sub task with id '{}' existing".format(subTaskID)}), 400
database.delete_roadmap(subTaskID)
database.delete_sub_task(subTaskID)
return jsonify({"success": True})
@subtask_api.route('/subtask', methods=['PUT'])
......
......@@ -56,7 +56,7 @@ def construct_blueprint(database):
if not __task_exists(taskID):
return jsonify({"success": False, "msg": "No task with id '{}' existing".format(taskID)}), 400
database.delete_roadmap(taskID)
database.delete_task(taskID)
return jsonify({"success": True})
@task_api.route('/task', methods=['PUT'])
......
This diff is collapsed.
......@@ -4,7 +4,7 @@ servers:
url: https://roadmaps.thecodelabs.de:10000/
info:
description: The Official Roadmaps API
version: "2.3.0"
version: "2.3.1"
title: Roadmaps API
tags:
- name: admins
......
{
"version": {
"name": "v2.3.0",
"code": 7,
"name": "v2.3.1",
"code": 8,
"date": "29.07.19"
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment