From 402ba4c5b67006c5c5337c674538c71f121a3238 Mon Sep 17 00:00:00 2001 From: dx-tan Date: Thu, 2 May 2024 14:16:43 +0700 Subject: [PATCH] Skip outdated request files --- cope2n-api/fwd_api/utils/accuracy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cope2n-api/fwd_api/utils/accuracy.py b/cope2n-api/fwd_api/utils/accuracy.py index cc07a03..4a7f6ac 100755 --- a/cope2n-api/fwd_api/utils/accuracy.py +++ b/cope2n-api/fwd_api/utils/accuracy.py @@ -827,6 +827,8 @@ def calculate_a_request(report, request): images = SubscriptionRequestFile.objects.filter(request=request, file_category=FileCategory.Origin.value) report_files = [] for image in images: + if image.processing_time < 0: + continue status, att = calculate_subcription_file(image) att["acc"]["feedback"], fb_max_indexes = acc_maximize_list_values(att["acc"]["feedback"]) att["acc"]["reviewed"], rv_max_indexes = acc_maximize_list_values(att["acc"]["reviewed"])