round result

pull/1/head
maxbachmann 2020-03-26 20:28:09 +01:00
parent 44a84ae751
commit d11b812a0e
No known key found for this signature in database
GPG Key ID: 60334E83C23820B8
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ def partial_string_based(str1, str2):
"""
from rapidfuzz import fuzz
result = fuzz.token_sort_ratio(str1, str2)
result = round(fuzz.token_sort_ratio(str1, str2))
logger.debug("--\t\tpartial_string_based '%s' '%s'\tresult: '%s'", str1, str2, result)
return result / 100.0