(session, project_id, input = input, member = None, log = regular_log.default())
| 79 | |
| 80 | |
| 81 | def _task_list_api(session, project_id, input = input, member = None, log = regular_log.default()): |
| 82 | task_list, total_count = task_list_core(session = session, |
| 83 | date_from = input['date_from'], |
| 84 | date_to = input['date_to'], |
| 85 | status = input['status'], |
| 86 | job_id = input['job_id'], |
| 87 | all_my_jobs = input['all_my_jobs'], |
| 88 | incoming_directory_id = input['incoming_directory_id'], |
| 89 | project_id = project_id, |
| 90 | file_id = input['file_id'], |
| 91 | mode_data = input['mode_data'], |
| 92 | issues_filter = input['issues_filter'], |
| 93 | limit_count = input['limit_count'], |
| 94 | page_number = input.get('page_number'), |
| 95 | member = member) |
| 96 | initial_dir_sync = None |
| 97 | if input.get('job_id'): |
| 98 | job = Job.get_by_id(session, input['job_id']) |
| 99 | initial_dir_sync = job.pending_initial_dir_sync |
| 100 | allow_reviews = job.allow_reviews |
| 101 | log['success'] = True |
| 102 | return jsonify(log = log, |
| 103 | task_list = task_list, |
| 104 | pending_initial_dir_sync = initial_dir_sync, allow_reviews = allow_reviews), 200 |
| 105 | |
| 106 | return jsonify(log = log, |
| 107 | task_list = task_list, |
| 108 | total_count = total_count, |
| 109 | pending_initial_dir_sync = initial_dir_sync), 200 |
| 110 | |
| 111 | |
| 112 | def get_external_id_to_task(session, task, task_template): |
no test coverage detected