debug
Browse files
App/Transcription/TranscriptionRoutes.py
CHANGED
@@ -133,11 +133,11 @@ async def create_file(
|
|
133 |
async def get_status(task_id):
|
134 |
entry: Transcriptions = await Transcriptions.objects.filter(task_id=task_id).first()
|
135 |
result = TranscriptionResult(**entry.__dict__)
|
136 |
-
|
137 |
if result.status == "SUCCESS":
|
138 |
return result
|
139 |
task_result = AsyncResult(task_id)
|
140 |
-
|
141 |
if task_result.result == None:
|
142 |
return {
|
143 |
"task_id": task_id,
|
|
|
133 |
async def get_status(task_id):
|
134 |
entry: Transcriptions = await Transcriptions.objects.filter(task_id=task_id).first()
|
135 |
result = TranscriptionResult(**entry.__dict__)
|
136 |
+
|
137 |
if result.status == "SUCCESS":
|
138 |
return result
|
139 |
task_result = AsyncResult(task_id)
|
140 |
+
print(task_result)
|
141 |
if task_result.result == None:
|
142 |
return {
|
143 |
"task_id": task_id,
|