fix threshold not applied to python fuzzymap
This commit is contained in:
@@ -208,7 +208,7 @@ class FuzzyMap:
|
||||
best_key = ""
|
||||
for key in self.map.keys():
|
||||
score = similar(key, fuzzy_key)
|
||||
if score > best_score:
|
||||
if score > best_score and score > self.threshold:
|
||||
best_score = score
|
||||
best_key = key
|
||||
|
||||
|
||||
Reference in New Issue
Block a user