Skip to content
Snippets Groups Projects
Commit 42ebb627 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Show fuzzyness amount in percentage terms, not out of the rather-arbitrary 400.

parent 1b82ceff
No related branches found
No related tags found
No related merge requests found
...@@ -164,10 +164,8 @@ class Container(metaclass=abc.ABCMeta): ...@@ -164,10 +164,8 @@ class Container(metaclass=abc.ABCMeta):
for my_name, other_name, score in self.perform_fuzzy_matching( for my_name, other_name, score in self.perform_fuzzy_matching(
my_members, other_members my_members, other_members
): ):
comment = ( score_display = score / 400.0 * 100
"Files similar despite different names" comment = f"Files {score_display:.0f}% similar despite different names"
" (score: {}, lower is more similar)".format(score)
)
if score == 0: if score == 0:
comment = "Files identical despite different names" comment = "Files identical despite different names"
yield prep_yield(my_name, other_name, comment) yield prep_yield(my_name, other_name, comment)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment