Skip to content

Commit

Permalink
🐛 (options): Don't try to match websites (preprint matching)
Browse files Browse the repository at this point in the history
  • Loading branch information
vict0rsch committed Nov 27, 2023
1 parent 55f5fce commit a0196e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ const startMatching = async (papersToMatch) => {
const setupPreprintMatching = async () => {
const papers = (await getStorage("papers")) ?? {};
const papersToMatch = Object.values(cleanPapers(papers))
.filter((paper) => !paper.venue) // randomize
.map((value) => ({ value, sort: Math.random() }))
.filter((paper) => !paper.venue && paper.source !== "website")
.map((value) => ({ value, sort: Math.random() })) // randomize
.sort((a, b) => a.sort - b.sort)
.map(({ value }) => value);
setHTML("preprints-number", papersToMatch.length);
Expand Down

0 comments on commit a0196e5

Please sign in to comment.