Skip to content

Commit

Permalink
Fix bug that cause update to never happen.
Browse files Browse the repository at this point in the history
  • Loading branch information
ticki committed Jul 2, 2019
1 parent aff062a commit ae797b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl Scheduler {
// Update the card queue if it hasn't been updated today, or haven't ever been updated
// before.
if self.sched.updated
.map(|updated| (updated - now).num_days() >= 1)
.map(|updated| (now - updated).num_days() >= 1)
.unwrap_or(true) {
// Update time.
self.sched.updated = Some(now);
Expand Down

0 comments on commit ae797b8

Please sign in to comment.