mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
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:
parent
d3d6bd8ce0
commit
48a0640a07
3 changed files with 3 additions and 4 deletions
|
@ -279,7 +279,6 @@ message CardAnswer {
|
|||
Rating rating = 4;
|
||||
int64 answered_at_millis = 5;
|
||||
uint32 milliseconds_taken = 6;
|
||||
optional bool from_queue = 7;
|
||||
}
|
||||
|
||||
message CustomStudyRequest {
|
||||
|
|
|
@ -163,10 +163,10 @@ impl Collection {
|
|||
rating,
|
||||
milliseconds_taken: 0,
|
||||
answered_at_millis: TimestampMillis::now().into(),
|
||||
// Process the card without updating queues yet
|
||||
from_queue: Some(false),
|
||||
}
|
||||
.into();
|
||||
// Process the card without updating queues yet
|
||||
answer.from_queue = false;
|
||||
col.answer_card_inner(&mut answer)?;
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
@ -21,7 +21,7 @@ impl From<anki_proto::scheduler::CardAnswer> for CardAnswer {
|
|||
answered_at: TimestampMillis(answer.answered_at_millis),
|
||||
milliseconds_taken: answer.milliseconds_taken,
|
||||
custom_data,
|
||||
from_queue: answer.from_queue.unwrap_or(true),
|
||||
from_queue: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue