diff --git a/src/tt/__init__.py b/src/tt/__init__.py index 99132f2..e69de29 100644 --- a/src/tt/__init__.py +++ b/src/tt/__init__.py @@ -1,2 +0,0 @@ -def hello() -> None: - print("Hello from tt!") diff --git a/src/tt/tui.py b/src/tt/tui.py index 602bdfa..dc3870c 100644 --- a/src/tt/tui.py +++ b/src/tt/tui.py @@ -181,13 +181,11 @@ class TT(App): def move_cursor_to_task(self, task_id): # ick, but only way to search table? - for row in range(len(self.table.rows)): + for row in range(self.table.row_count): data = self.table.get_row_at(row) if data[0] == str(task_id): self.table.move_cursor(row=row, column=1) break - else: - raise Exception("nope") # Control of edit bar ####################