Browse Source

ffpb_findnode(): change fuzzy matching cutoff from 80% to 75%

Helge Jung 9 years ago
parent
commit
05cd0501b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/ffpb.py

+ 1 - 1
modules/ffpb.py

@@ -232,7 +232,7 @@ def ffpb_findnode(name):
 			}
 
 	# do a similar name lookup in the ALFRED data
-	possibilities = difflib.get_close_matches(name, [ x for x in names ], cutoff=0.8)
+	possibilities = difflib.get_close_matches(name, [ x for x in names ], cutoff=0.75)
 	print('findnode: Fuzzy matching \'{0}\' got {1} entries: {2}'.format(name, len(possibilities), ', '.join(possibilities)))
 	if len(possibilities) == 1:
 		# if we got exactly one candidate that might be it