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.
This commit is contained in:
Matthias Beyer 2018-04-22 14:10:24 +02:00
parent 495ad62be6
commit 86b60295ee
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ impl Diary for Store {
}
})
.into_iter()
.rev()
//.map(|sidres| sidres.map(|sid| DiaryId::from_storeid(&sid)))
.next()
}