From efde279588a6820873433c553af7c0c81754e8e8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 16 May 2020 14:58:14 +1000 Subject: [PATCH] use the latest day when converting from legacy deck --- rslib/src/decks/schema11.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rslib/src/decks/schema11.rs b/rslib/src/decks/schema11.rs index b39168400..98691831b 100644 --- a/rslib/src/decks/schema11.rs +++ b/rslib/src/decks/schema11.rs @@ -261,7 +261,12 @@ impl From<&DeckCommonSchema11> for DeckCommon { DeckCommon { study_collapsed: common.study_collapsed, browser_collapsed: common.browser_collapsed, - last_day_studied: common.today.new.day as u32, + last_day_studied: common + .today + .new + .day + .max(common.today.lrn.day) + .max(common.today.rev.day) as u32, new_studied: common.today.new.amount, review_studied: common.today.rev.amount, learning_studied: common.today.lrn.amount,