mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04: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
caa703126c
commit
8bde6749b1
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