From 7e77f58f246eb559b6b7d28d8be72db984728f7f Mon Sep 17 00:00:00 2001 From: Manuel Sopena Ballesteros Date: Sun, 4 Aug 2024 16:33:26 +0200 Subject: [PATCH] fix: get session table showing formatted stated time in status cell --- Cargo.toml | 2 +- src/common/cfs_session_utils.rs | 21 ++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d705da09..52a61e93 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ publish = false # cargo # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -mesa = "0.40.8" +mesa = "0.40.9" # mesa = { path = "../mesa" } # Only for development purposes strum = "0.25.0" strum_macros = "0.25" diff --git a/src/common/cfs_session_utils.rs b/src/common/cfs_session_utils.rs index 577b0ad9..4e85c2d7 100644 --- a/src/common/cfs_session_utils.rs +++ b/src/common/cfs_session_utils.rs @@ -11,10 +11,17 @@ pub fn cfs_session_struct_to_vec(cfs_session: CfsSessionGetResponse) -> Vec>() + .unwrap() + .format("%d/%m/%Y %H:%M:%S") + .to_string(), + /* result.push( + cfs_session.get_start_time().unwrap_or("".to_string()), */ + /* cfs_session .get_start_time() .unwrap_or("".to_string()) - .to_string(), + .to_string(), */ ); /* result.push( cfs_session @@ -37,14 +44,6 @@ pub fn cfs_session_struct_to_vec(cfs_session: CfsSessionGetResponse) -> Vec>() - .unwrap() - .format("%d/%m/%Y %H:%M:%S") - .to_string(), - /* result.push( - cfs_session.get_start_time().unwrap_or("".to_string()), */ - /* result.push( cfs_session .status .as_ref() @@ -55,7 +54,7 @@ pub fn cfs_session_struct_to_vec(cfs_session: CfsSessionGetResponse) -> Vec