aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat/verify.py
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-12-24 02:22:53 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-12-24 02:22:53 +0100
commit41961555b1399241bb784a8677e3ca10806f6e2e (patch)
treef6eff65935a846e18d723119f6e90dc7c9f7e090 /fuzzycat/verify.py
parentb34e8e1c942c45ab448e091b9e51c916a84cca53 (diff)
downloadfuzzycat-41961555b1399241bb784a8677e3ca10806f6e2e.tar.gz
fuzzycat-41961555b1399241bb784a8677e3ca10806f6e2e.zip
tweak comparison, add test
Diffstat (limited to 'fuzzycat/verify.py')
-rw-r--r--fuzzycat/verify.py2
1 files changed, 1 insertions, 1 deletions
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)