From d558dd1bde065aa511f540b2ea9060d37a90c7f9 Mon Sep 17 00:00:00 2001 From: daovietanh99 Date: Tue, 27 Feb 2024 18:15:57 +0700 Subject: [PATCH] UPDATE: update field value and file name --- cope2n-api/fwd_api/utils/file.py | 2 ++ cope2n-api/report.xlsx | Bin 6984 -> 6986 bytes 2 files changed, 2 insertions(+) diff --git a/cope2n-api/fwd_api/utils/file.py b/cope2n-api/fwd_api/utils/file.py index b8f8cbf..8615ec0 100644 --- a/cope2n-api/fwd_api/utils/file.py +++ b/cope2n-api/fwd_api/utils/file.py @@ -525,6 +525,8 @@ def dict2xlsx(input: json, _type='report'): for key in mapping.keys(): value = get_value(subtotal, mapping[key]) ws[key + str(start_index)] = value + if key in ['C', 'D', 'E'] and value == 0: + ws[key + str(start_index)] = "-" ws[key + str(start_index)].border = border ws[key + str(start_index)].font = font_black if 'accuracy' in mapping[key] or 'time' in mapping[key] or 'percent' in mapping[key] or 'speed' in mapping[key]: diff --git a/cope2n-api/report.xlsx b/cope2n-api/report.xlsx index f96d07128995868edcaefa40a36b6ad0918099be..e4cda23ce30b2565ca9e23fe42e0cac87e464901 100644 GIT binary patch delta 2881 zcmY*bc{tQv8=e_!W5_ZiJIOL>CS{k%lE}mmVa7Hek%_2PPER7{uO7^{GCLv{4 zWFLD%_IN|0Y~`gtzIx9;_j%5B-{+j`xzF;vQ|eHH8Dkh2;UHF4R#2nqbC@I;(r8MR z2TT1%D~KHAFiv2!|Bc_6H5dqAVUQnG-=nk)?0|?TYFul7R~eaa$qdk?Z$UQ z@aPaDC!)z{ec4~)bemj;kDB2+Ap@&7Src$h(`a?sbjro5(_XvzjT^tBO>+)Lox5Up z=f`f}LRCepP=v@jF=}^5K7O+@tlm$pLu7`%&6*+f%*wK0cWwo-ZH1WyspK3E=vd-R zc*Quu8wOXwX&x%9Gv_9EB;Z@YC&r_VDuX_Hwza|$7gRQ0QF*0`hky<>O&$Pb{g{iD~K=FiZE z=2OXA*5RNPTaUHj@d~=+m7~dleZM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