From f7dadf2cb699ea9ab7aae8a65c7171c9f3907e64 Mon Sep 17 00:00:00 2001 From: dx-tan Date: Fri, 29 Mar 2024 17:47:10 +0700 Subject: [PATCH] Fix: #101 --- cope2n-api/fwd_api/api/accuracy_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cope2n-api/fwd_api/api/accuracy_view.py b/cope2n-api/fwd_api/api/accuracy_view.py index fdf35cf..9fb9268 100755 --- a/cope2n-api/fwd_api/api/accuracy_view.py +++ b/cope2n-api/fwd_api/api/accuracy_view.py @@ -632,7 +632,7 @@ class AccuracyViewSet(viewsets.ViewSet): target_timezone = pytz.timezone(settings.TIME_ZONE) if not report.S3_file_name: raise NotFoundException(excArgs="S3 file name") - if not report.S3_dashboard_file_name: + if not report.S3_dashboard_file_name and request.query_params["report_expression"] != "detail": raise NotFoundException(excArgs="S3 dashboard file name") file_name = report.S3_file_name if request.query_params["report_expression"] == "detail" else report.S3_dashboard_file_name