From 57eb7a22345f3bcd91d463924a07c5717be80179 Mon Sep 17 00:00:00 2001 From: Philipp Schmitt Date: Sat, 1 Feb 2025 17:02:40 +0100 Subject: [PATCH] Display N/A instead of nothing --- tdc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tdc.py b/tdc.py index d5b9726..fe4a256 100755 --- a/tdc.py +++ b/tdc.py @@ -262,14 +262,14 @@ def list_tasks( table.add_column("Due", style="green") for task in all_tasks: - due_str = task.due.string if task.due else "" - project_name_str = "" + due_str = task.due.string if task.due else "N/A" + project_name_str = "N/A" if task.project_id in projects_dict: project_name_str = maybe_strip_emojis(projects_dict[task.project_id].name) - section_name_str = "" + section_name_str = "N/A" if show_section_col and task.section_id in section_mapping: section_name_str = maybe_strip_emojis(section_mapping[task.section_id].name) - parent_task_str = "" + parent_task_str = "N/A" if show_subtasks and task.parent_id: if task.parent_id in task_dict: parent_task_str = maybe_strip_emojis(task_dict[task.parent_id].content)