aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat/verify.py
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-12-24 04:05:47 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-12-24 04:05:47 +0100
commit436635a735dd00d851fefdcb9aeea43adf427c2c (patch)
tree701017f75f9583c5d0c665293e7a26214ec10e18 /fuzzycat/verify.py
parent41961555b1399241bb784a8677e3ca10806f6e2e (diff)
downloadfuzzycat-436635a735dd00d851fefdcb9aeea43adf427c2c.tar.gz
fuzzycat-436635a735dd00d851fefdcb9aeea43adf427c2c.zip
tweak year a bit more, add case
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 9b29f81..21c1a15 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)) > 2:
+ int(b_release_year)) > 4:
return Verify(Status.DIFFERENT, Reason.YEAR)
return Verify(Status.EXACT, Reason.TITLE_AUTHOR_MATCH)