Fix: #101
This commit is contained in:
parent
4e48909e88
commit
f7dadf2cb6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user