Fix: bad image to file level
This commit is contained in:
parent
5ba11513f1
commit
04781ea7a4
@ -452,7 +452,7 @@ class CtelViewSet(viewsets.ViewSet):
|
|||||||
|
|
||||||
if user.id != user_data['internal_id'] or user.status != EntityStatus.ACTIVE.value:
|
if user.id != user_data['internal_id'] or user.status != EntityStatus.ACTIVE.value:
|
||||||
raise PermissionDeniedException()
|
raise PermissionDeniedException()
|
||||||
print(f"[DEBUG]: rq: {rq}, file_name: {file_name}")
|
# print(f"[DEBUG]: rq: {rq}, file_name: {file_name}")
|
||||||
file_data = SubscriptionRequestFile.objects.filter(request=rq, file_name=file_name)[0]
|
file_data = SubscriptionRequestFile.objects.filter(request=rq, file_name=file_name)[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
raise NotFoundException(excArgs='file')
|
raise NotFoundException(excArgs='file')
|
||||||
|
@ -23,7 +23,7 @@ def get_latest_requests(limit=50):
|
|||||||
"total_memory": request.total_memory,
|
"total_memory": request.total_memory,
|
||||||
"gpu_stats": request.gpu_stats,
|
"gpu_stats": request.gpu_stats,
|
||||||
"is_reviewed": request.is_reviewed,
|
"is_reviewed": request.is_reviewed,
|
||||||
"is_bad_image_quality": request.is_bad_image_quality,
|
# "is_bad_image_quality": request.is_bad_image_quality,
|
||||||
})
|
})
|
||||||
return requests_dict
|
return requests_dict
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user