mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
sched_timing_today() needs a default rollover hour
When unset it was reverting to the V1 code. https://forums.ankiweb.net/t/daily-counts-are-reset-on-sync/3441/16
This commit is contained in:
parent
779a8930e7
commit
717ea6db3d
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ impl Collection {
|
|||
|
||||
let rollover_hour = match self.sched_ver() {
|
||||
SchedulerVersion::V1 => None,
|
||||
SchedulerVersion::V2 => self.get_v2_rollover(),
|
||||
SchedulerVersion::V2 => self.get_v2_rollover().or(Some(4)),
|
||||
};
|
||||
|
||||
Ok(sched_timing_today(
|
||||
|
|
|
|||
Loading…
Reference in a new issue