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.
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.