use the latest day when converting from legacy deck
This commit is contained in:
parent
1cddd6d23e
commit
efde279588
@ -261,7 +261,12 @@ impl From<&DeckCommonSchema11> for DeckCommon {
|
|||||||
DeckCommon {
|
DeckCommon {
|
||||||
study_collapsed: common.study_collapsed,
|
study_collapsed: common.study_collapsed,
|
||||||
browser_collapsed: common.browser_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,
|
new_studied: common.today.new.amount,
|
||||||
review_studied: common.today.rev.amount,
|
review_studied: common.today.rev.amount,
|
||||||
learning_studied: common.today.lrn.amount,
|
learning_studied: common.today.lrn.amount,
|
||||||
|
Loading…
Reference in New Issue
Block a user