style: fix ruff lint and format issues across service modules
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
72bc046215
commit
c0e66c509f
9 changed files with 37 additions and 41 deletions
|
|
@ -93,8 +93,12 @@ def find_best_match(
|
|||
|
||||
for original_score, cand in top_scored_candidates:
|
||||
tb_score = 0
|
||||
if target_year is not None and cand.publication_year is not None and abs(target_year - cand.publication_year) <= 1:
|
||||
tb_score += 1
|
||||
if (
|
||||
target_year is not None
|
||||
and cand.publication_year is not None
|
||||
and abs(target_year - cand.publication_year) <= 1
|
||||
):
|
||||
tb_score += 1
|
||||
|
||||
candidate_author_names = [a.display_name for a in cand.authors if a.display_name]
|
||||
if _author_overlap_score(target_authors, candidate_author_names):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue