mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
Format
This commit is contained in:
parent
d9e68075ac
commit
c924df0d53
1 changed files with 2 additions and 6 deletions
|
|
@ -192,12 +192,8 @@ impl QueueBuilder {
|
|||
let intraday_learning = sort_learning(self.learning);
|
||||
let now = TimestampSecs::now();
|
||||
let cutoff = now.adding_secs(learn_ahead_secs);
|
||||
let learn_count = intraday_learning
|
||||
.iter()
|
||||
.filter(|e| e.due <= cutoff)
|
||||
.count()
|
||||
+ self.day_learning.len();
|
||||
|
||||
let learn_count =
|
||||
intraday_learning.iter().filter(|e| e.due <= cutoff).count() + self.day_learning.len();
|
||||
let review_count = self.review.len();
|
||||
let new_count = self.new.len();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue