mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
parent
669312d5eb
commit
4040a3c1f9
1 changed files with 2 additions and 1 deletions
|
@ -34,8 +34,9 @@ pub struct SchedulerInfo {
|
|||
impl Collection {
|
||||
pub fn scheduler_info(&mut self) -> Result<SchedulerInfo> {
|
||||
let now = TimestampSecs::now();
|
||||
if let Some(info) = self.state.scheduler_info {
|
||||
if let Some(mut info) = self.state.scheduler_info {
|
||||
if now < info.timing.next_day_at {
|
||||
info.timing.now = now;
|
||||
return Ok(info);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue