unbury when rendering deck list

We were previously relying on the sched_timing_today() call in the
backend, but v3 doesn't call it, leading to cards remaining buried.
This commit is contained in:
Damien Elmes 2021-10-16 21:10:56 +10:00
parent b87c4ee946
commit a29bd7c9f0

View File

@ -307,7 +307,9 @@ impl Collection {
if let Some(now) = now { if let Some(now) = now {
let limit = top_deck_id let limit = top_deck_id
.and_then(|did| decks_map.get(&did).map(|deck| deck.name.as_native_str())); .and_then(|did| decks_map.get(&did).map(|deck| deck.name.as_native_str()));
let days_elapsed = self.timing_for_timestamp(now)?.days_elapsed; let timing = self.timing_for_timestamp(now)?;
self.unbury_if_day_rolled_over(timing)?;
let days_elapsed = timing.days_elapsed;
let learn_cutoff = (now.0 as u32) + self.learn_ahead_secs(); let learn_cutoff = (now.0 as u32) + self.learn_ahead_secs();
let sched_ver = self.scheduler_version(); let sched_ver = self.scheduler_version();
let v3 = self.get_config_bool(BoolKey::Sched2021); let v3 = self.get_config_bool(BoolKey::Sched2021);