Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a 'grade now' feature #3694

Open
dae opened this issue Jan 7, 2025 · 0 comments
Open

Provide a 'grade now' feature #3694

dae opened this issue Jan 7, 2025 · 0 comments
Labels
rust Involves Anki's Rust code

Comments

@dae
Copy link
Member

dae commented Jan 7, 2025

Useful to e.g. push cards forward after they've been reviewed externally, and because FSRS would prefer every rescheduling have a grade associated with it.

The scheduling code currently assumes that a card will only be answered when it's at the top of the scheduling queue. The queue is potentially tens of thousands of cards big, and it's not ideal if we have to search through the entire list on every card answer to locate the matched card and remove it from the queue (in queue/mod.rs).

Perhaps one way we could avoid unwanted extra processing is to refactor the card answering so that there is a from_queue flag. If false, the entire queue would be searched, and there would be no error generated if the card was not found in the queue (when e.g. the user has rated a card that's not due yet).

Presumably we should ignore suspended cards in such a mode, or throw an error when attempting to reschedule them?

@dae dae added the rust Involves Anki's Rust code label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Involves Anki's Rust code
Projects
None yet
Development

No branches or pull requests

1 participant