odakaui / vocabulist

A vocabulary database for learning Japanese
MIT License
0 stars 0 forks source link

Sync database with Anki #2

Closed odakaui closed 4 years ago

odakaui commented 4 years ago

Sync database with Anki.

Right now the user has to manually go into the database using sqlite3 and reset the in_anki, is_learned, and is_excluded fields. The program should do that with the sync command. Expressions that are in anki will be marked as in_anki = 1. Expressions of notes that are suspended in anki will be marked as is_excluded = 1. Expressions of notes that are mastered will be marked as is_learned = 1.

There might be a problem with marking expressions as is_learned. Anki could potentially have multiple cards per note. It appears that you can search for a card and then get the note for that card. However, it is unclear how anki defines mastered. This is potentially an additional feature that should have its own issue.