Commit 752f9907 authored by Sebastien Robin's avatar Sebastien Robin

erp5_ooo_import: the score of property was not able to find perfect matching

parent c4f9f1a5
......@@ -61,10 +61,12 @@ def extract_keyword(name):\n
\n
def match(name, keyword_list):\n
count = 0\n
if name == keyword_list:\n
return 1\n
for i in keyword_list:\n
if i in name:\n
count += 1\n
return count/float(len(keyword_list))\n
return count/float(len(name + keyword_list))\n
\n
module = context\n
spreadsheet_column = cell.getProperty(\'spreadsheet_column\')\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment