We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9cef5e commit f93e275Copy full SHA for f93e275
fuzzymap/fuzzymap.py
@@ -25,7 +25,7 @@ def closest_key(self, key):
25
# Calculate matching coefficient of each key via fuzz.ratio
26
coefficients = {k: fuzz.ratio(k, key) for k in self.keys()}
27
matching = max(coefficients, key=lambda k: coefficients[k])
28
- if coefficients[matching] > self.ratio:
+ if coefficients[matching] >= self.ratio:
29
return matching
30
return key
31
0 commit comments