Consider all matches, not just exact matches
This commit is contained in:
parent
ba56274022
commit
b76a6707f2
|
@ -289,8 +289,8 @@ def get_best_hit(title: str, hits: list[Hit]) -> tuple[Hit, dict[str, typing.Any
|
||||||
for hit in hits:
|
for hit in hits:
|
||||||
if hit["title"].lower() == title.lower():
|
if hit["title"].lower() == title.lower():
|
||||||
continue
|
continue
|
||||||
if match_type(title, hit["snippet"]) != "exact":
|
# if match_type(title, hit["snippet"]) != "exact":
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print(f'get diff: {hit["title"]}, {title}')
|
print(f'get diff: {hit["title"]}, {title}')
|
||||||
|
|
Loading…
Reference in a new issue