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.
2 parents e3825ac + 1e7d9b0 commit dcc6a4dCopy full SHA for dcc6a4d
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