mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix v2 scheduler cutoff being used if previously activated
This commit is contained in:
parent
c3e007f069
commit
e231895cc2
1 changed files with 6 additions and 1 deletions
|
@ -30,12 +30,17 @@ impl Collection {
|
|||
None
|
||||
};
|
||||
|
||||
let rollover_hour = match self.sched_ver() {
|
||||
SchedulerVersion::V1 => None,
|
||||
SchedulerVersion::V2 => self.get_v2_rollover(),
|
||||
};
|
||||
|
||||
Ok(sched_timing_today(
|
||||
self.storage.creation_stamp()?,
|
||||
now,
|
||||
self.get_creation_mins_west(),
|
||||
local_offset,
|
||||
self.get_v2_rollover(),
|
||||
rollover_hour,
|
||||
))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue