Remove outdated request files out of detail report
This commit is contained in:
parent
54956df3d9
commit
2c141e3b60
@ -827,14 +827,15 @@ def calculate_a_request(report, request):
|
|||||||
images = SubscriptionRequestFile.objects.filter(request=request, file_category=FileCategory.Origin.value)
|
images = SubscriptionRequestFile.objects.filter(request=request, file_category=FileCategory.Origin.value)
|
||||||
report_files = []
|
report_files = []
|
||||||
for image in images:
|
for image in images:
|
||||||
if image.processing_time < 0:
|
|
||||||
continue
|
|
||||||
status, att = calculate_subcription_file(image)
|
status, att = calculate_subcription_file(image)
|
||||||
att["acc"]["feedback"], fb_max_indexes = acc_maximize_list_values(att["acc"]["feedback"])
|
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"])
|
att["acc"]["reviewed"], rv_max_indexes = acc_maximize_list_values(att["acc"]["reviewed"])
|
||||||
|
|
||||||
_att = copy.deepcopy(att)
|
_att = copy.deepcopy(att)
|
||||||
|
|
||||||
|
if image.processing_time < 0:
|
||||||
|
continue
|
||||||
if status != 200:
|
if status != 200:
|
||||||
continue
|
continue
|
||||||
image.feedback_accuracy = att["acc"]["feedback"] # dict {key: [values]}
|
image.feedback_accuracy = att["acc"]["feedback"] # dict {key: [values]}
|
||||||
|
Loading…
Reference in New Issue
Block a user