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:
|
||||
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]
|
||||
except IndexError:
|
||||
raise NotFoundException(excArgs='file')
|
||||
|
@ -23,7 +23,7 @@ def get_latest_requests(limit=50):
|
||||
"total_memory": request.total_memory,
|
||||
"gpu_stats": request.gpu_stats,
|
||||
"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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user