add querying script (for fun)
This commit is contained in:
1 parent
bf042c2274
commit
130421afb7
1 file changed
+12
@@ -0,0 +1,12 @@
|
||||
import { AnkiConnect } from '@/ankiconnect';
|
||||
|
||||
const anki = new AnkiConnect();
|
||||
anki
|
||||
.api('findNotes', {
|
||||
query:
|
||||
'deck:Takoboto -Takoboto: tag:common -tag:reading-challenge -tag:favorites -tag:death-note -tag:ハピネス -tag:https://www.bunka.go.jp/seisaku/bunkashingikai/kokugo/hokoku/pdf/ijidokun_140221.pdf',
|
||||
})
|
||||
.then((notes) => anki.api('notesInfo', { notes }))
|
||||
.then((notes) => {
|
||||
console.log(new Set(notes.flatMap((n) => n.tags)));
|
||||
});
|
||||
Reference in new issue
Block a user