Anki/ftl
Jarrett Ye 62e01fe03a
Fix Cards with Missing Last Review Time During Database Check (#4237)
* Fix Cards with Missing Last Review Time During Database Check

* clippy

* Apply suggestions from code review

Co-authored-by: Luc Mcgrady <lucmcgrady@gmail.com>

* Apply suggestions from code review

Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>

* Add is_reset method to RevlogEntry and update scheduling logic

This commit introduces the `is_reset` method to the `RevlogEntry` struct, which identifies entries representing reset operations. Additionally, the scheduling logic in `memory_state.rs` and `params.rs` has been updated to utilize this new method, ensuring that reset entries are handled correctly during review scheduling.

* Implement is_cramming method in RevlogEntry and update scheduling logic

This commit adds the `is_cramming` method to the `RevlogEntry` struct, which identifies entries representing cramming operations. The scheduling logic in `params.rs` has been updated to utilize this new method, improving the clarity and maintainability of the code.

* Refactor rating logic in RevlogEntry and update related scheduling functions

This commit introduces a new `has_rating` method in the `RevlogEntry` struct to encapsulate the logic for checking if an entry has a rating. The scheduling logic in `params.rs` and the calculation of normal answer counts in `card.rs` have been updated to use this new method, enhancing code clarity and maintainability.

* update revlog test helper function to assign button_chosen correctly

* Refactor card property fixing logic to use CardFixStats struct

* Add one-way sync trigger for last review time updates in dbcheck

* Update documentation for is_reset method in RevlogEntry to clarify ease_factor condition

* Apply suggestions from code review

Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>

* Minor wording tweak

---------

Co-authored-by: Luc Mcgrady <lucmcgrady@gmail.com>
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
2025-08-06 19:49:30 +10:00
..
core Fix Cards with Missing Last Review Time During Database Check (#4237) 2025-08-06 19:49:30 +10:00
core-repo@a0d0e232d2 Update translations 2025-07-28 19:18:38 +10:00
qt Refactor launcher + various tweaks 2025-06-27 16:10:12 +07:00
qt-repo@9639c96fe5 Update translations 2025-07-28 19:18:38 +10:00
src Update to Rust 1.88 2025-06-29 11:50:49 +07:00
usage Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
.gitignore Add an improved tool for copying/moving FTL strings 2023-07-04 13:39:01 +10:00
Cargo.toml lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
copy-core-string.sh Move 'review' out of 'no need to translate' section 2023-11-04 08:45:02 +10:00
ftl Add an improved tool for copying/moving FTL strings 2023-07-04 13:39:01 +10:00
move-from-ankimobile Add an improved tool for copying/moving FTL strings 2023-07-04 13:39:01 +10:00
README.md fix documentation links 2021-06-03 16:51:03 +10:00
remove-unused.sh Don't store used FTL keys in git 2022-04-09 12:38:54 +10:00
update-ankidroid-usage.sh Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
update-ankimobile-usage.sh Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00

Files related to Anki's translations.

Please see https://translating.ankiweb.net/anki/developers