From cd112d0b4c1c65f64554bbafded3accb0d370e03 Mon Sep 17 00:00:00 2001 From: James Turk Date: Sat, 4 Jan 2025 02:00:02 -0600 Subject: [PATCH] overdue --- src/tt/controller.py | 1 - src/tt/utils.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tt/controller.py b/src/tt/controller.py index 6451357..f95472f 100644 --- a/src/tt/controller.py +++ b/src/tt/controller.py @@ -31,7 +31,6 @@ def update_task( ) -> Task: with db.atomic(): task = Task.get_by_id(task_id) - query = Task.update(kwargs).where(Task.id == task_id) query.execute() task = Task.get_by_id(task_id) diff --git a/src/tt/utils.py b/src/tt/utils.py index baa3add..7cf7e6f 100644 --- a/src/tt/utils.py +++ b/src/tt/utils.py @@ -1,5 +1,6 @@ import re import datetime +from rich.text import Text def remove_rich_tag(text): @@ -39,7 +40,7 @@ def get_colored_date(date: datetime.date) -> str: as_str = date.strftime("%Y-%m-%d") today = datetime.date.today() if date.date() < today: - color = "#FF0000" + return Text(as_str, style="black on red") else: # Calculate weeks into future delta = date.date() - today