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