Merge pull request #1414 from matthiasbeyer/imag-diary/list-full-id
Fix: Use full storeid when listing
This commit is contained in:
commit
659f959816
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ use libimagutil::debug_result::*;
|
|||
use libimagdiary::diaryid::DiaryId;
|
||||
use libimagdiary::diaryid::FromStoreId;
|
||||
use libimagdiary::error::Result;
|
||||
|
||||
use libimagstore::storeid::IntoStoreId;
|
||||
|
||||
use util::get_diary_name;
|
||||
|
||||
|
@ -48,7 +48,7 @@ pub fn list(rt: &Runtime) {
|
|||
[id.year() as u32, id.month(), id.day(), id.hour(), id.minute(), id.second()]
|
||||
});
|
||||
|
||||
for id in ids {
|
||||
for id in ids.into_iter().map(|id| id.into_storeid().map_err_trace_exit_unwrap(1)) {
|
||||
writeln!(rt.stdout(), "{}", id)
|
||||
.to_exit_code()
|
||||
.unwrap_or_exit();
|
||||
|
|
Loading…
Reference in a new issue