I generated a deck using GitHub - kerrickstaley/genanki: A Python 3 library for generating Anki decks
The model I’m using is following:
anki_model = genanki.Model(
1799440363,
'Georgian top 1000 words',
fields=[
{'name': '_idx'},
{'name': 'Georgian'},
{'name': 'Russian'},
{'name': 'Translit'},
{'name': 'Usage'},
{'name': 'UsageRu'},
],
templates=[
{
'name': 'Ka-Ru',
'qfmt': '{{Georgian}}',
'afmt': '{{Georgian}}<hr id="answer"/>{{Russian}}<br/><i>{{Translit}}</i><br/><div class="usage">{{Usage}}</div>',
},
{
'name': 'Ru-Ka',
'qfmt': '{{Russian}}<br/><br/><div class="usage">{{UsageRu}}</div>',
'afmt': '{{Russian}}<hr id="answer"/>{{Georgian}}<br/><i>{{Translit}}</i><br/><br/><div class="usage">{{Usage}}</div>',
},
],
sort_field_index=0,
)
What I want is for Anki to show me both Ka-Ru and Ru-Ka interleaved. Instead, Anki shows only Ka-Ru. I tried to create a deck with only 5 notes, and Anki showed 5 cards Ka-Ru and only then 5 cards Ru-Ka
I tried playing with all available options in Anki: different display order, sibling burying: nothing helps. Only setting New card order to “Random” makes Anki show both types of cards, but random order is not what I want
Deck created manually from Anki is displayed in correct (interleaved) order.
This behavior is the same on PC and Android
I understand that this is most likely a problem in python library that I use, but I can not figure out what this library does wrong, so I really hope someone can help me