mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Fix
This commit is contained in:
@@ -81,7 +81,7 @@ module.exports = class JeopardyScrape {
|
|||||||
}
|
}
|
||||||
for (const clue of file.clues) {
|
for (const clue of file.clues) {
|
||||||
if (typeof clue !== 'object' || Array.isArray(clue)) continue;
|
if (typeof clue !== 'object' || Array.isArray(clue)) continue;
|
||||||
if (this.clues.includes(clue.question)) continue;
|
if (this.clues.some(c => c.question === clue.question && c.answer === clue.answer)) continue;
|
||||||
this.clues.push(clue);
|
this.clues.push(clue);
|
||||||
}
|
}
|
||||||
this.imported = true;
|
this.imported = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user