Skip to content

Commit

Permalink
Cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Garulf committed Dec 14, 2023
1 parent 5738ecd commit 5f2a7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyflowlauncher/string_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def string_matcher(query: str, text: str, ignore_case: bool = True, query_search
current_query_substring_char_index = 0

if acronyms_matched > 0 and acronyms_matched == len(query):
acronyms_score: int = acronyms_matched * 100 / acronyms_total_count
acronyms_score: int = int(acronyms_matched * 100 / acronyms_total_count)

if acronyms_score >= query_search_precision:
return MatchData(True, query_search_precision, acronym_match_data, acronyms_score)
Expand Down

0 comments on commit 5f2a7c2

Please sign in to comment.