ver Mar4th
updated range-wise fuzzy match mode for compare_table
This commit is contained in:
@@ -53,51 +53,75 @@
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "MUST_VISIT.xlsx - LibreOffice Calc",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "sleep",
|
||||
"parameters": {
|
||||
"seconds": 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "execute",
|
||||
"parameters": {
|
||||
"command": [
|
||||
"libreoffice",
|
||||
"--convert-to",
|
||||
"csv:Text - txt - csv (StarCalc):44,34,UTF-8,,,,false,true,true,false,false,1",
|
||||
"--outdir",
|
||||
"/home/user/Desktop",
|
||||
"/home/user/Desktop/MUST_VISIT.xlsx"
|
||||
"python",
|
||||
"-c",
|
||||
"import pyautogui; pyautogui.hotkey(\"ctrl\", \"s\");"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "sleep",
|
||||
"parameters": {
|
||||
"seconds": 1.0
|
||||
}
|
||||
}
|
||||
],
|
||||
"func": "compare_table",
|
||||
"result": {
|
||||
"type": "vm_file",
|
||||
"path": [
|
||||
"/home/user/Desktop/MUST_VISIT.xlsx",
|
||||
"/home/user/Desktop/MUST_VISIT-Sheet1.csv"
|
||||
],
|
||||
"dest": [
|
||||
"MUST_VISIT.xlsx",
|
||||
"MUST_VISIT-Sheet1.csv"
|
||||
],
|
||||
"multi": true
|
||||
"path": "/home/user/Desktop/MUST_VISIT.xlsx",
|
||||
"dest": "MUST_VISIT.xlsx"
|
||||
},
|
||||
"expected": {
|
||||
"type": "cloud_file",
|
||||
"path": [
|
||||
"https://drive.google.com/uc?id=1MV6jBvRbbYwPqeFTd_nX40xzyltNhphl&export=download",
|
||||
"https://drive.google.com/uc?id=1CGoRQDLw9-Ai7daq3qCz0o9kYSZB2WNn&export=download"
|
||||
],
|
||||
"dest": [
|
||||
"MUST_VISIT-gt.xlsx",
|
||||
"MUST_VISIT-gt-Sheet1.csv"
|
||||
],
|
||||
"multi": true
|
||||
"path": "https://drive.google.com/uc?id=1MV6jBvRbbYwPqeFTd_nX40xzyltNhphl&export=download",
|
||||
"dest": "MUST_VISIT-gt.xlsx"
|
||||
},
|
||||
"options": {
|
||||
"rules": [
|
||||
{
|
||||
"type": "sheet_print",
|
||||
"type": "sheet_fuzzy",
|
||||
"sheet_idx0": "RNSheet1",
|
||||
"sheet_idx1": "ENSheet1"
|
||||
"sheet_idx1": "ENSheet1",
|
||||
"rules": [
|
||||
{
|
||||
"range": ["A1:A6", "D1:D6"],
|
||||
"type": "exact_match"
|
||||
},
|
||||
{
|
||||
"range": ["B1:B6"],
|
||||
"type": "fuzzy_match",
|
||||
"threshold": 85,
|
||||
"normalization": [
|
||||
["Rd", "Road"],
|
||||
["St", "Street"]
|
||||
],
|
||||
"ignore_case": true
|
||||
},
|
||||
{
|
||||
"range": ["C1:C6"],
|
||||
"type": "includes",
|
||||
"trim_leadings": "+ ",
|
||||
"ignore_chars": " ()-"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user