From 55d42fc52c5a316f41a9ddc7625786e9e4e47d2b Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Mon, 11 Nov 2024 21:56:29 +0100 Subject: [PATCH] enhance(tasks): inherit displayed priority --- src/tasks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks.rs b/src/tasks.rs index 4666a15..86b7b04 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -543,7 +543,7 @@ impl TasksRelay { "progress" => prog_string.clone(), "author" | "creator" => format!("{:.6}", self.get_username(&task.event.pubkey)), // FIXME temporary until proper column alignment - "prio" => task.priority_raw().map(|p| p.to_string()).unwrap_or_else(|| + "prio" => self.traverse_up_from(Some(*task.get_id())).find_map(Task::priority_raw).map(|p| p.to_string()).unwrap_or_else(|| if self.priority.is_some() { DEFAULT_PRIO.to_string().dimmed().to_string() } else {