diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-04-22 14:10:24 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-04-22 14:11:19 +0200 |
commit | 86b60295eef9a1cf878f82853b51413136d7d7b3 (patch) | |
tree | 4e7318e2761123717097bf16908f38e749ce92ac /lib | |
parent | 495ad62be63b527588ac9a87066f25dda06e8235 (diff) |
Fix: get_youngest_entry_id()
We need to reverse the iterator for getting the _youngest_ entry here.
Also seems to fix the issue that imag-diary edit -d <date> did not work
properly.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/domain/libimagdiary/src/diary.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/domain/libimagdiary/src/diary.rs b/lib/domain/libimagdiary/src/diary.rs index 292f0601..fb1953d1 100644 --- a/lib/domain/libimagdiary/src/diary.rs +++ b/lib/domain/libimagdiary/src/diary.rs @@ -125,6 +125,7 @@ impl Diary for Store { } }) .into_iter() + .rev() //.map(|sidres| sidres.map(|sid| DiaryId::from_storeid(&sid))) .next() } |