fixed 'list' command showing group titles instead of session titles

This commit is contained in:
Valerie Wolfe 2024-03-14 17:03:33 -04:00
parent b81737c182
commit e7ead09ad9

View file

@ -124,7 +124,7 @@ pub fn list() {
// pretty print session list // pretty print session list
println!("sessions:"); println!("sessions:");
for session in sessions.into_iter() { for session in sessions.into_iter() {
let group = session.group.unwrap_or("[untitled]".to_string()); let group = session.name.unwrap_or("[untitled]".to_string());
let id = session.id.unwrap(); let id = session.id.unwrap();
let attached = session.attached.unwrap_or(0) > 0; let attached = session.attached.unwrap_or(0) > 0;