diff --git a/src/subconscious/digest.rs b/src/subconscious/digest.rs index 5791044..9cc92ef 100644 --- a/src/subconscious/digest.rs +++ b/src/subconscious/digest.rs @@ -156,8 +156,8 @@ fn gather(level: &DigestLevel, store: &Store, arg: &str) -> Result = store.nodes.iter() .filter(|(_, n)| n.node_type == store::NodeType::EpisodicSession - && n.timestamp > 0 - && store::format_date(n.timestamp) == label) + && n.created_at > 0 + && store::format_date(n.created_at) == label) .map(|(key, n)| { (store::format_datetime(n.timestamp), n.content.clone(), key.clone()) }) @@ -298,8 +298,8 @@ pub fn digest_auto(store: &mut Store) -> Result<(), String> { // Collect all dates with episodic entries let dates: Vec = store.nodes.values() - .filter(|n| n.node_type == store::NodeType::EpisodicSession && n.timestamp > 0) - .map(|n| store::format_date(n.timestamp)) + .filter(|n| n.node_type == store::NodeType::EpisodicSession && n.created_at > 0) + .map(|n| store::format_date(n.created_at)) .collect::>() .into_iter() .collect();