MCPcopy Index your code
hub / github.com/diffgram/diffgram / task_next_issue

Function task_next_issue

default/methods/task/task/task_next_issue.py:9–28  ·  view source on GitHub ↗

Returns the ID of the next task with an issue within the task template. :param task_id: :return:

(task_id)

Source from the content-addressed store, hash-verified

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"])
9def 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
31def task_next_issue_core(session, task_id):

Callers

nothing calls this directly

Calls 1

task_next_issue_coreFunction · 0.85

Tested by

no test coverage detected