diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-12-24 04:05:47 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-12-24 04:05:47 +0100 |
commit | 436635a735dd00d851fefdcb9aeea43adf427c2c (patch) | |
tree | 701017f75f9583c5d0c665293e7a26214ec10e18 /fuzzycat/verify.py | |
parent | 41961555b1399241bb784a8677e3ca10806f6e2e (diff) | |
download | fuzzycat-436635a735dd00d851fefdcb9aeea43adf427c2c.tar.gz fuzzycat-436635a735dd00d851fefdcb9aeea43adf427c2c.zip |
tweak year a bit more, add case
Diffstat (limited to 'fuzzycat/verify.py')
-rw-r--r-- | fuzzycat/verify.py | 2 |
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) |