mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Anki is a smart spaced repetition flashcard program
![]() * 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> |
||
---|---|---|
.buildkite | ||
.cargo | ||
.config | ||
.cursor/rules | ||
.github/ISSUE_TEMPLATE | ||
.vscode.dist | ||
build | ||
cargo | ||
docs | ||
ftl | ||
proto | ||
pylib | ||
python | ||
qt | ||
rslib | ||
tools | ||
ts | ||
.deny.toml | ||
.dockerignore | ||
.dprint.json | ||
.eslintrc.cjs | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.mypy.ini | ||
.prettierrc | ||
.python-version | ||
.ruff.toml | ||
.rustfmt-empty.toml | ||
.rustfmt.toml | ||
.version | ||
.yarnrc.yml | ||
Cargo.lock | ||
Cargo.toml | ||
check | ||
CLAUDE.md | ||
CONTRIBUTORS | ||
LICENSE | ||
ninja | ||
package.json | ||
pkgkey.asc | ||
pyproject.toml | ||
README.md | ||
run | ||
run.bat | ||
rust-toolchain.toml | ||
SECURITY.md | ||
uv.lock | ||
yarn | ||
yarn.bat | ||
yarn.lock |
Anki®
This repo contains the source code for the computer version of Anki.
About
Anki is a spaced repetition program. Please see the website to learn more.
Getting Started
Anki Betas
If you'd like to try development builds of Anki but don't feel comfortable building the code, please see Anki betas
Developing
For more information on building and developing, please see Development.
Contributing
Want to contribute to Anki? Check out the Contribution Guidelines.
Anki Contributors
License
Anki's license: LICENSE