UPDATE: add subs field to report detail

This commit is contained in:
daovietanh99 2024-02-15 15:39:03 +07:00
parent 1e49e14e4c
commit f1baee2bf0
2 changed files with 21 additions and 20 deletions

View File

@ -465,26 +465,27 @@ def dict2xlsx(input: json, _type='report'):
wb = load_workbook(filename = 'report_detail.xlsx') wb = load_workbook(filename = 'report_detail.xlsx')
ws = wb['Sheet1'] ws = wb['Sheet1']
mapping = { mapping = {
'A': 'request_id', 'A': 'subs',
'B': 'redemption_number', 'B': 'request_id',
'C': 'image_type', 'C': 'redemption_number',
'D': 'imei_user_submitted', 'D': 'image_type',
'E': "imei_ocr_retrieved", 'E': 'imei_user_submitted',
'F': "imei1_accuracy", 'F': "imei_ocr_retrieved",
'G': "invoice_purchase_date_consumer", 'G': "imei1_accuracy",
'H': "invoice_purchase_date_ocr", 'H': "invoice_purchase_date_consumer",
'I': "invoice_purchase_date_accuracy", 'I': "invoice_purchase_date_ocr",
'J': "invoice_retailer_consumer", 'J': "invoice_purchase_date_accuracy",
'K': "invoice_retailer_ocr", 'K': "invoice_retailer_consumer",
'L': "invoice_retailer_accuracy", 'L': "invoice_retailer_ocr",
'M': "ocr_image_accuracy", 'M': "invoice_retailer_accuracy",
'N': "ocr_image_speed", 'N': "ocr_image_accuracy",
'O': "is_reviewed", 'O': "ocr_image_speed",
'P': "bad_image_reasons", 'P': "is_reviewed",
'Q': "countermeasures", 'Q': "bad_image_reasons",
'R': 'imei_revised_accuracy', 'R': "countermeasures",
'S': 'purchase_date_revised_accuracy', 'S': 'imei_revised_accuracy',
'T': 'retailer_revised_accuracy', 'T': 'purchase_date_revised_accuracy',
'U': 'retailer_revised_accuracy',
} }
start_index = 4 start_index = 4

Binary file not shown.