Fix: bad image to file level

This commit is contained in:
dx-tan 2024-01-17 16:44:04 +07:00
parent 5ba11513f1
commit 04781ea7a4
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View 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