Exporting a deck with 'custom learning' active

I tried to export my ANKI flashcard as a separate deck file. However, it seems that there’s an issue with that, if the deck is in the process of ‘custom learning/repetition’. When that is enabled it exports only a tiny piece of the deck.

In my case I have a deck of 999 cards, used custom learning yesterday to go through all of them (I am passing the exam today so wanted to repeat all of them). With the custom learning still ‘on’ I tried to export the deck today - with no luck. I was getting only 10% of the overall deck.

Removing ‘custom learning’ deck fixed that issue.The problem occured both on Anki desktop but also when trying to share the deck from the web client (after syncing with desktop version).

Don’t know if it’s a bug or a feature, so reporting it here for triage.

1 Like

It sounds like you have some of your cards pulled into a Filtered/Custom study deck, is that right? While those cards are only available to study in that deck right now, they should still be included in an export of their home deck.

Can you walk us through exactly what you are doing to export the deck – what screen are you on, what is selected, what are you choosing from the menu, what export options are you using, etc.?

When you respond, also include your full version information – paste what you get from Help > About > Copy debug info.

Trying to troubleshoot I have installed the latest version for Windows.

Version ⁨24.06.3 (d678e393)⁩
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

What I did was simple - on the list of the decks I have clicked the cog, chose “Export”, set it to not include timing/schedule, to attach media (I got some images inside), did not set legacy mode, and I just clicked “Export”.

As for the AnkiWeb section - on the list of the decks (after syncing with desktop) I have just clicked “Share”, filled all the necessary fields and shared. I saw there in the summary that it exported only circa 120 cards, and not all of them. That’s it.

I am pretty sure that you can simulate the same thing on your machine - just use any kind of deck, make it custom study with some long ahead time, go through all the cards, and after that just try to export the main deck.

I think it will help if we separate this into 2 separate issues, both related to partially-filtered decks –
(A) What is included in an apkg export file when some of the cards in that deck are are held in a Filtered/Custom deck
(B) What is shared on AnkiWeb when some of the cards in that deck are are held in a Filtered/Custom deck

I was talking about (A), but it sounds like your issue might primarily be (B)?

As far as (A) –
When you exported the apkg, how could you tell that not all of the notes/cards were included? Was it in the confirmation message pop-up for the export? Or did you import that apkg somewhere else to check it?

As far as (B) –
That could theoretically be a bug or a feature request. It seems like you’d generally want to avoid sharing a deck to AnkiWeb while it’s actively being used and Filtered. It is possible that use-case wasn’t contemplated, since it would leave so many unknowns for a deck author about what exactly they were sharing for other users.

Well, I just think that simple pop-up of any kind will be enough, claiming that “Hey! You got your deck exported/edited/shared with Filtered/Custom deck. The share/export functionality may not export all the data”, and that will do the trick.

I was just surprised that there’s a specific behavior, and both desktop app or web app did not say a thing why is that. It’s not that it is crucial that there’s built-in support for always exporting the full deck when in filtered/custom state. Any kind of info during the process will do.

It seems like you jumped right ahead to “what to do about the behavior” before we confirmed there was anything happening. I can’t do much to help you with regard to (A) without answers to my questions.

Regarding (A) - the message in the ANKI desktop was ‘exported XX cards’ with XX being circa 10% of the overall size of the deck.

The same was for the sharing process from the ANKIWeb - the summary screen said something like ‘A snippet of cards from the XX cards’ with XX being also circa 10% of the overall size.

Okay, a dev can take a look at this, and if it’s not expected behavior, hopefully that’s enough information to reproduce it.

1 Like

There are times when we treat a deck limit like it includes the original deck (e.g. deck:foo) searches, so it may make sense to do it here too. @Rumo, any thoughts?

1 Like

Yes, without having looked at the code, it seems reasonable to include cards from filtered decks, at least if you export without scheduling.

1 Like