From 04781ea7a444985864d9407d1c108f10a1e87b6b Mon Sep 17 00:00:00 2001 From: dx-tan Date: Wed, 17 Jan 2024 16:44:04 +0700 Subject: [PATCH] Fix: bad image to file level --- cope2n-api/fwd_api/api/ctel_view.py | 2 +- cope2n-api/fwd_api/utils/health.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cope2n-api/fwd_api/api/ctel_view.py b/cope2n-api/fwd_api/api/ctel_view.py index 57abc5a..91816fe 100755 --- a/cope2n-api/fwd_api/api/ctel_view.py +++ b/cope2n-api/fwd_api/api/ctel_view.py @@ -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') diff --git a/cope2n-api/fwd_api/utils/health.py b/cope2n-api/fwd_api/utils/health.py index 65a7cf4..1883ba5 100644 --- a/cope2n-api/fwd_api/utils/health.py +++ b/cope2n-api/fwd_api/utils/health.py @@ -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