Fix dates (hopefully) pt.2

This commit is contained in:
Hellx2 2024-08-18 20:27:51 +10:00
parent 196458be0e
commit 75eb0c88ba
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ pub fn images() -> gtk::Box {
let images = crate::pkexec("docker images".to_owned(), false) let images = crate::pkexec("docker images".to_owned(), false)
.unwrap() .unwrap()
.lines() .lines()
.skip(1)
.map(|x| x.parse::<Image>().unwrap()) .map(|x| x.parse::<Image>().unwrap())
.collect::<Vec<Image>>(); .collect::<Vec<Image>>();

View file

@ -62,7 +62,7 @@ impl FromStr for Image {
repository: parts[0].clone(), repository: parts[0].clone(),
tag: parts[1].clone(), tag: parts[1].clone(),
id: parts[2].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(), size: parts.last().expect("Failed to get last item!").clone(),
}) })
} }