Skip outdated request files

This commit is contained in:
dx-tan 2024-05-02 14:16:43 +07:00
parent 1075eacd7b
commit 402ba4c5b6

View File

@ -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"])