From f1baee2bf09e693ce27a01f58631176dae224366 Mon Sep 17 00:00:00 2001 From: daovietanh99 Date: Thu, 15 Feb 2024 15:39:03 +0700 Subject: [PATCH] UPDATE: add subs field to report detail --- cope2n-api/fwd_api/utils/file.py | 41 ++++++++++++++++--------------- cope2n-api/report_detail.xlsx | Bin 6335 -> 6672 bytes 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/cope2n-api/fwd_api/utils/file.py b/cope2n-api/fwd_api/utils/file.py index 1a49e30..c5094fb 100644 --- a/cope2n-api/fwd_api/utils/file.py +++ b/cope2n-api/fwd_api/utils/file.py @@ -465,26 +465,27 @@ def dict2xlsx(input: json, _type='report'): wb = load_workbook(filename = 'report_detail.xlsx') ws = wb['Sheet1'] mapping = { - 'A': 'request_id', - 'B': 'redemption_number', - 'C': 'image_type', - 'D': 'imei_user_submitted', - 'E': "imei_ocr_retrieved", - 'F': "imei1_accuracy", - 'G': "invoice_purchase_date_consumer", - 'H': "invoice_purchase_date_ocr", - 'I': "invoice_purchase_date_accuracy", - 'J': "invoice_retailer_consumer", - 'K': "invoice_retailer_ocr", - 'L': "invoice_retailer_accuracy", - 'M': "ocr_image_accuracy", - 'N': "ocr_image_speed", - 'O': "is_reviewed", - 'P': "bad_image_reasons", - 'Q': "countermeasures", - 'R': 'imei_revised_accuracy', - 'S': 'purchase_date_revised_accuracy', - 'T': 'retailer_revised_accuracy', + 'A': 'subs', + 'B': 'request_id', + 'C': 'redemption_number', + 'D': 'image_type', + 'E': 'imei_user_submitted', + 'F': "imei_ocr_retrieved", + 'G': "imei1_accuracy", + 'H': "invoice_purchase_date_consumer", + 'I': "invoice_purchase_date_ocr", + 'J': "invoice_purchase_date_accuracy", + 'K': "invoice_retailer_consumer", + 'L': "invoice_retailer_ocr", + 'M': "invoice_retailer_accuracy", + 'N': "ocr_image_accuracy", + 'O': "ocr_image_speed", + 'P': "is_reviewed", + 'Q': "bad_image_reasons", + 'R': "countermeasures", + 'S': 'imei_revised_accuracy', + 'T': 'purchase_date_revised_accuracy', + 'U': 'retailer_revised_accuracy', } start_index = 4 diff --git a/cope2n-api/report_detail.xlsx b/cope2n-api/report_detail.xlsx index 6850d8eaf52e793f77fcda5caa9e394cdfbbd189..566defc618701c19499d939a6b24b26464033bd7 100644 GIT binary patch delta 4562 zcmZu#1zc3y)}NtUUVCaUSyQGnhp+kg0x+EMLq(gyAcbBA>PLWnZIs}P< z2Y&C}>wVul`*(h4?{n5!YoGPs>%Z4J9X#=T`07fiXe0nEEG&S#j9LOdHM~o;hZ`^K zz%PpRoPSXQE4QdcS)qlFkGk`TGi6<5esA#cnGA>+?@e`2tZM-L#-eaZ*_nNbn@Pze zQpX??rH#qbzqoh!#?_Y#{AXT3ACaKECQO>uEly4G^wX;3P=TLEyduuliHg!VaMN=4 z1wd3H+|5|W``OKlh>Z|~U3d(!tBr2n92~7RM8(O0-x*3n^-_#?O^+Ty=QW_Hod2p= zu$36!Dh$VW$;!WJc=;fafC7(OL4_!VZexFdY_cJi4w*Q-otg@2ZrX5ju{g!}vz0i6 z+s4CBg~4Azc|V)g@6xk9qnDswZF>5YOK)p& z{j#6&_))0u>$H^@p|J&$T$40!JaB5X1XJ@Njr2qRx^nIHZx*9T$vmkd?pJkVeYUSf);U3;$;Y^> zG8SRid`H5VcGaZUUpEOTq|^Db+u~B~n1LRfjr2uGMa^~dXttr)K0!?B_MYnTeBN4c zgsbQ4o|U03O4O%KaOOb#C2K7hg|!F6_H1EsTbGP_Usxno0#5<-O%nav3eTRMESk8w zES2)%;YPbF|6FgDBUf<8)m4Zbw_#w^Gmx@^T5<-dVFe9!KtNkNra%Tuyp@B0-Hp6h zxb2=woEyW7Tyiz>5y*EH6G>MVLFq@OKj2>DW}dzqIg;gcZ=e@vJ^;qZ3R%fsN8 zV$s+R&q9@o*&L?#*$bL>Z=b|1f8gyrRW+(2H_$X)RN^-V9mKYTy*}(eOH7l%g*axH z+bn@k>rpB8sNWQqzurlIJd2W9i|&9|vA_wMWRp`eNvMg16{tVa+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