Optimize: Do not iterate over entries outside of "timetrack" collection
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
fe9409a5dc
commit
b985c510aa
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ impl<'a> TimeTrackStore<'a> for Store {
|
|||
}
|
||||
|
||||
fn get_timetrackings(&'a self) -> Result<TimeTrackingsGetIterator<'a>> {
|
||||
Ok(TimeTrackingsGetIterator::new(self.entries()?, self))
|
||||
Ok(TimeTrackingsGetIterator::new(self.entries()?.in_collection("timetrack"), self))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue