Revert "feat(scheduler): add from_queue flag to CardAnswer (#3976)"

This reverts commit 1f95d030bb.

Buggy: https://github.com/ankitects/anki/pull/3983
This commit is contained in:
Damien Elmes 2025-05-19 10:26:10 +10:00
parent d3d6bd8ce0
commit 48a0640a07
3 changed files with 3 additions and 4 deletions

View file

@ -279,7 +279,6 @@ message CardAnswer {
Rating rating = 4; Rating rating = 4;
int64 answered_at_millis = 5; int64 answered_at_millis = 5;
uint32 milliseconds_taken = 6; uint32 milliseconds_taken = 6;
optional bool from_queue = 7;
} }
message CustomStudyRequest { message CustomStudyRequest {

View file

@ -163,10 +163,10 @@ impl Collection {
rating, rating,
milliseconds_taken: 0, milliseconds_taken: 0,
answered_at_millis: TimestampMillis::now().into(), answered_at_millis: TimestampMillis::now().into(),
// Process the card without updating queues yet
from_queue: Some(false),
} }
.into(); .into();
// Process the card without updating queues yet
answer.from_queue = false;
col.answer_card_inner(&mut answer)?; col.answer_card_inner(&mut answer)?;
} }
Ok(()) Ok(())

View file

@ -21,7 +21,7 @@ impl From<anki_proto::scheduler::CardAnswer> for CardAnswer {
answered_at: TimestampMillis(answer.answered_at_millis), answered_at: TimestampMillis(answer.answered_at_millis),
milliseconds_taken: answer.milliseconds_taken, milliseconds_taken: answer.milliseconds_taken,
custom_data, custom_data,
from_queue: answer.from_queue.unwrap_or(true), from_queue: true,
} }
} }
} }