Skip to content

Commit cfaeab4

Browse files
committed
both forgot and hard cards should be reviewed at the end of the session
1 parent e844c8e commit cfaeab4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/drill/view.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,9 @@ async fn action_handler(state: ServerState, action: Action) -> Fallible<()> {
245245
parameters.due_date.into_inner()
246246
);
247247

248-
// Was the card forgotten? Put it at the back.
249-
if grade == Grade::Forgot {
248+
// Cards graded `Forgot` or `Hard` are put at the back of the
249+
// queue.
250+
if grade == Grade::Forgot || grade == Grade::Hard {
250251
mutable.cards.push(card);
251252
}
252253
mutable.reveal = false;

0 commit comments

Comments
 (0)