Skip to content

Commit 5f2a7c2

Browse files
committed
Cast to int
1 parent 5738ecd commit 5f2a7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyflowlauncher/string_matcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def string_matcher(query: str, text: str, ignore_case: bool = True, query_search
115115
current_query_substring_char_index = 0
116116

117117
if acronyms_matched > 0 and acronyms_matched == len(query):
118-
acronyms_score: int = acronyms_matched * 100 / acronyms_total_count
118+
acronyms_score: int = int(acronyms_matched * 100 / acronyms_total_count)
119119

120120
if acronyms_score >= query_search_precision:
121121
return MatchData(True, query_search_precision, acronym_match_data, acronyms_score)

0 commit comments

Comments
 (0)