Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vighneshiyer committed Mar 29, 2024
1 parent 682ed14 commit 1e55552
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion today-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ There should be a way to mark those critical tasks such that they always show up
Also, the remaining tasks can be displayed in the normal tree form as 'extras' for a given day.
I'm generalizing this into a priority marking system.

- [ ] Importance markers [d:3/12/2024]
- [x] Importance markers [d:3/12/2024]
- [x] Rename date_defns to task_attrs
- [x] Add importance markers parsing
- [x] Cleanup task printing (summary + description) logic into attributes
Expand Down
4 changes: 3 additions & 1 deletion today/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def add_to_tree(task: Task, tree: Tree, task_idx: int, first_call: bool) -> Tree
)
if task.subtasks:
for subtask in task.subtasks:
if subtask.done is False:
if subtask.done is False and subtask.is_displayed(
args.today, args.lookahead_days.days
):
parent.add(
Markdown(f"{subtask.title} {subtask.summary(args.today)}")
)
Expand Down

0 comments on commit 1e55552

Please sign in to comment.