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:
parent
495ad62be6
commit
86b60295ee
1 changed files with 1 additions and 0 deletions
|
@ -125,6 +125,7 @@ impl Diary for Store {
|
|||
}
|
||||
})
|
||||
.into_iter()
|
||||
.rev()
|
||||
//.map(|sidres| sidres.map(|sid| DiaryId::from_storeid(&sid)))
|
||||
.next()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue