From 8e2eead5402e62c9b7a4480cee51ab323566b7ee Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sun, 29 Oct 2023 22:28:01 +0000 Subject: [PATCH] smol tweaks --- hamstertools/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hamstertools/app.py b/hamstertools/app.py index 80e101f..cb07d49 100644 --- a/hamstertools/app.py +++ b/hamstertools/app.py @@ -444,7 +444,6 @@ class CategoryListScreen(ListScreen): self._refresh() def action_delete(self) -> None: - # get the keys for the row and column under the cursor. row_key, _ = self.table.coordinate_to_cell_key(self.table.cursor_coordinate) category_id = self.table.get_cell_at( @@ -453,7 +452,6 @@ class CategoryListScreen(ListScreen): category = HamsterCategory.get(id=category_id) category.delete_instance() - # supply the row key to `remove_row` to delete the row. self.table.remove_row(row_key) @@ -581,5 +579,5 @@ class HamsterToolsApp(App): self.switch_mode("activities") def action_quit(self) -> None: - self.exit() db.close() + self.exit()