ankitects / ankitects/anki

[BUG] Learning cards are shown as buried cards on deck overview page

Open
#4,263 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
60

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.