[BUG] Learning cards are shown as buried cards on deck overview page
Steps to reproduce:
- Study some new cards. Don't complete the reviews yet. Exit the reviewer.
- Wait for the newly introduced cards to become due again (the next learning step)
- Click on the deck. The Decks overview page shows the learning cards as buried, but they are not buried.
None of these cards is buried.
Closing and relaunching Anki resolves the issue. (This also means that sharing an apkg for reproduction isn't possible.)
Anki 25.08 beta5
First reported in
- https://github.com/ankidroid/Anki-Android/issues/17110
Relevant code: https://github.com/ankitects/anki/blob/f3b4284afbb38b894164cd4de3e7b690f2bc62a5/qt/aqt/overview.py#L228-L241
https://github.com/ankitects/anki/blob/f3b4284afbb38b894164cd4de3e7b690f2bc62a5/rslib/src/scheduler/queue/mod.rs#L88-L137
As the deck overview page shows 5 buried learning cards, it means that the get_queued_cards function in the Rust backend is returning 0 as the learning_count for some reason.
Hi! I’d like to work on this issue. Is it available?
Do you have a plan for how to solve this without the problem mentioned in the previous PR? If not, and you're more looking for something to get started with open source contributions, this might not be the best repo for a first contribution.
Hi! Thanks for the feedback. I understand that this issue may be tricky, especially since a previous PR attempted to solve it but introduced other problems. I am willing to go through that PR in detail, try to understand why it did not work out and explore a possible solution. If you think this is reasonable I would be happy to give it a try, otherwise I would appreciate any suggestions for another issue I could take on instead?