Skip to content

Commit

Permalink
Fix str score threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
moehmeni committed Dec 13, 2023
1 parent 5cf10b0 commit 8777d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncedlyrics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def str_score(a: str, b: str) -> float:

def str_same(a: str, b: str, n: int = 70) -> bool:
"""Returns `True` if the similarity score of the two strings is greater than `n`"""
return str_score(a, b) > n
return round(str_score(a, b)) >= n


def sort_results(
Expand Down

0 comments on commit 8777d0d

Please sign in to comment.