diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-27 18:10:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 18:10:59 -0400 |
commit | 0956634d61ef2b6202645ec4b502239573c2e743 (patch) | |
tree | e53dcf42db38c57d0e48cb0970574a3945951372 /ext/bg/js/backend.js | |
parent | 48c7010f4ea8daafd30e5650625c377affa0cecd (diff) |
Add duplicateScope: 'deck' option (#476)
* Add duplicateScope: 'deck' option
* Add option to control duplicate scope
* Use duplicateScope for findNoteIds
* Update location of quotes
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r-- | ext/bg/js/backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 3c47b14e..dd1fd8e9 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -555,7 +555,7 @@ class Backend { } if (cannotAdd.length > 0) { - const noteIdsArray = await this.anki.findNoteIds(cannotAdd.map((e) => e[0])); + const noteIdsArray = await this.anki.findNoteIds(cannotAdd.map((e) => e[0]), options.anki.duplicateScope); for (let i = 0, ii = Math.min(cannotAdd.length, noteIdsArray.length); i < ii; ++i) { const noteIds = noteIdsArray[i]; if (noteIds.length > 0) { |