Skip to content

Commit

Permalink
year diff can be up to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vict0rsch committed Feb 2, 2023
1 parent 1f4baa3 commit 0b7d6cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/shared/js/utils/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1470,9 +1470,7 @@ const trySemanticScholar = async (paper) => {
for (const match of matches.data) {
if (
miniHash(match.title) === miniHash(paper.title) &&
(match.year === paper.year ||
match.year === paper.year - 1 ||
match.year === paper.year + 1) &&
Math.abs(match.year - paper.year) < 3 &&
match.venue &&
match.venue.toLowerCase() !== "arxiv"
) {
Expand Down

0 comments on commit 0b7d6cc

Please sign in to comment.