From 41961555b1399241bb784a8677e3ca10806f6e2e Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 24 Dec 2020 02:22:53 +0100 Subject: tweak comparison, add test --- fuzzycat/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fuzzycat/verify.py') diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py index 99b507a..9b29f81 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -465,7 +465,7 @@ def verify(a: Dict, b: Dict, min_title_length=5) -> Tuple[str, str]: # preprint and published work may not be published in the same # year; compromise allow a small gap if a_release_year and b_release_year and abs(int(a_release_year) - - int(b_release_year)) > 1: + int(b_release_year)) > 2: return Verify(Status.DIFFERENT, Reason.YEAR) return Verify(Status.EXACT, Reason.TITLE_AUTHOR_MATCH) -- cgit v1.2.3