From 75eb0c88bae6bf849627e6d9f378387f3c1cd5af Mon Sep 17 00:00:00 2001 From: Hellx2 Date: Sun, 18 Aug 2024 20:27:51 +1000 Subject: [PATCH] Fix dates (hopefully) pt.2 --- src/containers/images.rs | 1 + src/containers/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/images.rs b/src/containers/images.rs index 0927af3..a8e29ce 100644 --- a/src/containers/images.rs +++ b/src/containers/images.rs @@ -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::().unwrap()) .collect::>(); diff --git a/src/containers/mod.rs b/src/containers/mod.rs index e8128e1..232489d 100644 --- a/src/containers/mod.rs +++ b/src/containers/mod.rs @@ -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(), }) }