diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-02-06 01:42:59 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-02-11 03:52:04 +0100 |
commit | b985c510aa3b00d560d4eb8e07fe210072c9343a (patch) | |
tree | 32fa21a852ed68960c2ed4924e33b3d0a0e89be7 | |
parent | fe9409a5dc2dab4adb19076decf3d7c94389726f (diff) |
Optimize: Do not iterate over entries outside of "timetrack" collection
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | lib/domain/libimagtimetrack/src/timetrackingstore.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/domain/libimagtimetrack/src/timetrackingstore.rs b/lib/domain/libimagtimetrack/src/timetrackingstore.rs index fa69ac37..50339c27 100644 --- a/lib/domain/libimagtimetrack/src/timetrackingstore.rs +++ b/lib/domain/libimagtimetrack/src/timetrackingstore.rs @@ -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)) } } |