diff options
author | Alasdair Colley <alnessy@hotmail.com> | 2014-07-18 11:03:59 +0200 |
---|---|---|
committer | Alasdair Colley <alnessy@hotmail.com> | 2014-07-18 11:03:59 +0200 |
commit | a25c00457560b0fad25e33fb53cce0e8f1b6f9fa (patch) | |
tree | 798ae18de37937961a3e597ba367311f23739fff | |
parent | 4db9994d7ccf66038198bdfe184dd610515ccb28 (diff) |
lowering cutoff in the string matching algorithm
-rwxr-xr-x | saucypy | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ VERSION = "1.0.0" ENTRIES_FILE = "saucypy.json" def find( key, entries ): - return difflib.get_close_matches( key, entries.keys() ) + return difflib.get_close_matches( key, entries.keys(), cutoff = 0.3 ) def parse_args(): args = sys.argv[1:] |