def get(self, task_id): stt_task = get_stt_task_by_task_id(task_id) if not stt_task: return make_response_error('Cannot find task ID', 404) if not stt_task.result_srt_content: return make_response_error('SRT Not available yet', 404) return make_response_text(stt_task.result_srt_content)
def get(self, task_id): stt_task = get_stt_task_by_task_id(task_id) if not stt_task: return make_response_error('Cannot find task ID', 404) return make_response(stt_task.to_dict())