update
This commit is contained in:
parent
7764f9726f
commit
19c182c543
@ -408,7 +408,7 @@ class AccuracyViewSet(viewsets.ViewSet):
|
||||
|
||||
data = []
|
||||
for report in page:
|
||||
acc_keys = ["purchase_date", "retailername", "imei_number", "avg"]
|
||||
acc_keys = ["purchase_date", "retailername", "invoice_no", "imei_number", "avg"]
|
||||
acc = {}
|
||||
for key in acc_keys:
|
||||
fb = report.feedback_accuracy.get(key, 0) if report.feedback_accuracy else 0
|
||||
|
@ -320,6 +320,9 @@ class CtelViewSet(viewsets.ViewSet):
|
||||
'retailername': {
|
||||
'type': 'string',
|
||||
},
|
||||
'invoice_no': {
|
||||
'type': 'string',
|
||||
},
|
||||
'sold_to_party': {
|
||||
'type': 'string',
|
||||
},
|
||||
@ -336,7 +339,7 @@ class CtelViewSet(viewsets.ViewSet):
|
||||
}
|
||||
},
|
||||
},
|
||||
'required': ['request_id', 'retailername', 'sold_to_party', 'purchase_date', 'imei_number']
|
||||
'required': ['request_id', 'retailername', 'invoice_no', 'sold_to_party', 'purchase_date', 'imei_number']
|
||||
}
|
||||
}, responses=None, tags=['OCR'])
|
||||
@action(detail=False, url_path="images/feedback", methods=["POST"])
|
||||
|
Loading…
Reference in New Issue
Block a user