feat: normalize customer name and quantity checkmarks in accuracy check and regenerate excel
This commit is contained in:
1 parent
43e6eea253
commit
095d4b799a
2 files changed
+5
-1
No files matched your search
@@ -8,7 +8,11 @@ from openpyxl.utils import get_column_letter
|
|||||||
def clean_val(val):
|
def clean_val(val):
|
||||||
if val is None:
|
if val is None:
|
||||||
return ""
|
return ""
|
||||||
return str(val).strip().upper()
|
s = str(val).strip().upper()
|
||||||
|
s = " ".join(s.split())
|
||||||
|
s = s.replace("PT. ", "PT.")
|
||||||
|
s = s.replace("✓", "").replace("✔", "").strip()
|
||||||
|
return s
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
jsonl_file = "backend/uploads/test_images_results.jsonl"
|
jsonl_file = "backend/uploads/test_images_results.jsonl"
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user