You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, field names are created and assigned to each card individually. This is inefficient and does not reflect how Anki handles cards itself. Instead, field names should be generated once and then associated with that specific card type.
The information should be stored at the AnkiDeck scope. Though the same card may be read into multiple AnkiDecks, we should treat each as independent entries rather than references to the same entry.
This also requires refactoring how AnkiCards store information internally. Currently, the field name is used to access the value stored in that field. One idea for a replacement is to store the unique field names as an ordered dict mapping {field_name: index} where index is the location of the field value corresponding to field_name.
An issue to keep in mind is intended behaviour when card types are not explictly listed.
Currently, field names are created and assigned to each card individually. This is inefficient and does not reflect how Anki handles cards itself. Instead, field names should be generated once and then associated with that specific card type.
The information should be stored at the AnkiDeck scope. Though the same card may be read into multiple AnkiDecks, we should treat each as independent entries rather than references to the same entry.
This also requires refactoring how AnkiCards store information internally. Currently, the field name is used to access the value stored in that field. One idea for a replacement is to store the unique field names as an ordered dict mapping
{field_name: index}
whereindex
is the location of the field value corresponding tofield_name
.An issue to keep in mind is intended behaviour when card types are not explictly listed.
[ankideckconstructor] src/gaggle/gaggle.py (Line 807)
Open in IDE · Open on GitHub
Created from JetBrains using CodeStream
The text was updated successfully, but these errors were encountered: