Returns the ID of the next task with an issue within the task template. :param task_id: :return:
(task_id)
| 7 | @routes.route('/api/v1/task/<int:task_id>/next-task-with-issues', methods = ['POST']) |
| 8 | @Permission_Task.by_task_id(apis_user_list = ["builder_or_trainer"]) |
| 9 | def task_next_issue(task_id): |
| 10 | """ |
| 11 | Returns the ID of the next task with an issue within the task template. |
| 12 | :param task_id: |
| 13 | :return: |
| 14 | """ |
| 15 | spec_list = [] |
| 16 | |
| 17 | log, input, untrusted_input = regular_input.master(request = request, |
| 18 | spec_list = spec_list) |
| 19 | if len(log["error"].keys()) >= 1: |
| 20 | return jsonify(log = log), 400 |
| 21 | |
| 22 | with sessionMaker.session_scope() as session: |
| 23 | task_id = task_next_issue_core(session = session, |
| 24 | task_id = task_id) |
| 25 | |
| 26 | log['success'] = True |
| 27 | return jsonify(log = log, |
| 28 | task_id = task_id), 200 |
| 29 | |
| 30 | |
| 31 | def task_next_issue_core(session, task_id): |
nothing calls this directly
no test coverage detected