Fix dates (hopefully) pt.2
This commit is contained in:
parent
196458be0e
commit
75eb0c88ba
2 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ pub fn images() -> gtk::Box {
|
|||
let images = crate::pkexec("docker images".to_owned(), false)
|
||||
.unwrap()
|
||||
.lines()
|
||||
.skip(1)
|
||||
.map(|x| x.parse::<Image>().unwrap())
|
||||
.collect::<Vec<Image>>();
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ impl FromStr for Image {
|
|||
repository: parts[0].clone(),
|
||||
tag: parts[1].clone(),
|
||||
id: parts[2].clone(),
|
||||
created: parts[3..(parts.len() - 1)].join(" "),
|
||||
created: parts[3..(parts.len() - 2)].join(" "),
|
||||
size: parts.last().expect("Failed to get last item!").clone(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue