Reduce the judgment threshold for checking duplicate items by year

This commit is contained in:
Northword 2026-02-06 16:00:40 +08:00 committed by GitHub
parent 2f7055e15d
commit 4899483d30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -359,7 +359,7 @@ Zotero.Duplicates.prototype._findDuplicates = async function () {
// If both items have a year and they're off by more than one, it's not a dupe
if (typeof yearCache[a.itemID] != 'undefined'
&& typeof yearCache[b.itemID] != 'undefined'
&& Math.abs(yearCache[a.itemID] - yearCache[b.itemID]) > 1) {
&& Math.abs(yearCache[a.itemID] - yearCache[b.itemID]) >= 1) {
return 0;
}