Skip to content

Commit

Permalink
fix: get session table showing formatted stated time in status cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Sopena Ballesteros committed Aug 4, 2024
1 parent 1d5c9ac commit 7e77f58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
21 changes: 10 additions & 11 deletions src/common/cfs_session_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ pub fn cfs_session_struct_to_vec(cfs_session: CfsSessionGetResponse) -> Vec<Stri
let mut result = vec![cfs_session.name.clone().unwrap()];
result.push(cfs_session.configuration.clone().unwrap().name.unwrap());
result.push(
cfs_session
start_time_utc_str
.parse::<DateTime<Local>>()
.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
Expand All @@ -37,14 +44,6 @@ pub fn cfs_session_struct_to_vec(cfs_session: CfsSessionGetResponse) -> Vec<Stri
.to_string(),
); */
result.push(
start_time_utc_str
.parse::<DateTime<Local>>()
.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()
Expand All @@ -55,7 +54,7 @@ pub fn cfs_session_struct_to_vec(cfs_session: CfsSessionGetResponse) -> Vec<Stri
.status
.as_ref()
.unwrap_or(&"".to_string())
.to_string(), */
.to_string(),
);
result.push(cfs_session.is_success().to_string());
result.push(
Expand Down

0 comments on commit 7e77f58

Please sign in to comment.