Anki/rslib
Pedro Schreiber e520736d3b Fix learning cards incorrectly shown as buried in deck overview
When learning cards become due while queue counts are cached, they were
incorrectly shown as 'buried' in the deck overview. This happened because
the counts() method only updated the learning cutoff when all counts were
zero, missing newly due learning cards.

- Modified counts() to also check for newly due learning cards
- Added has_newly_due_learning_cards() to detect timing changes
- Added test case to prevent regression

Fixes issue where learning cards appear buried after exiting reviewer
and waiting for next learning step, resolved by restarting Anki.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 10:32:46 -03:00
..
benches Update Rust and Python deps (#2567) 2023-07-01 18:26:43 +10:00
i18n Update to Rust 1.88 2025-06-29 11:50:49 +07:00
io Launcher tweaks 2025-06-20 16:13:50 +07:00
linkchecker Migrate build system to uv (#4074) 2025-06-19 14:03:16 +07:00
process Provide better output when downloading versions fails 2025-07-24 20:23:43 +07:00
proto Switch to Ruff (#4119) 2025-06-29 14:38:35 +07:00
proto_gen lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
src Fix learning cards incorrectly shown as buried in deck overview 2025-08-16 10:32:46 -03:00
sync Refactor launcher + various tweaks 2025-06-27 16:10:12 +07:00
tests/support move linkchecker into separate crate 2021-12-20 17:27:43 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
bench.sh Update Rust and Python deps (#2567) 2023-07-01 18:26:43 +10:00
build.rs Fix building outside workspace 2023-07-02 18:22:44 +10:00
Cargo.toml Feat/Desired retention info graphs (#4199) 2025-07-28 18:55:08 +10:00
README.md Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
rust_interface.rs Update to Rust 1.88 2025-06-29 11:50:49 +07:00

Anki's Rust code.