We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3855b9 commit fad2a3bCopy full SHA for fad2a3b
1 file changed
mycli/sqlcompleter.py
@@ -1319,18 +1319,9 @@ def find_fuzzy_matches(
1319
limit=20,
1320
score_cutoff=75,
1321
)
1322
+ existing = {c[0] for c in completions}
1323
for item, _score, _type in rapidfuzz_matches:
- if len(item) < len(text) / 1.5:
1324
- continue
1325
- if (item, Fuzziness.PERFECT) in completions:
1326
1327
- if (item, Fuzziness.REGEX) in completions:
1328
1329
- if (item, Fuzziness.UNDER_WORDS) in completions:
1330
1331
- if (item, Fuzziness.CAMEL_CASE) in completions:
1332
1333
- if (item, Fuzziness.RAPIDFUZZ) in completions:
+ if len(item) < len(text) / 1.5 or item in existing:
1334
continue
1335
completions.append((item, Fuzziness.RAPIDFUZZ))
1336
0 commit comments