2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 19:45:46 +00:00

Add a 'confirm_creation' input if there are possible part matches

This commit is contained in:
Oliver Walters
2019-05-11 12:29:02 +10:00
parent d9c0d2f5e3
commit 84d2fce8ca
4 changed files with 30 additions and 6 deletions

View File

@ -146,7 +146,7 @@ def match_part_names(match, threshold=80, reverse=True, compare_length=False):
if len(compare) == 0:
continue
ratio = fuzz.partial_ratio(compare, match)
ratio = fuzz.partial_token_sort_ratio(compare, match)
if compare_length:
# Also employ primitive length comparison