diff --git a/src/tt/controller/tasks.py b/src/tt/controller/tasks.py index 50525fa..711a84c 100644 --- a/src/tt/controller/tasks.py +++ b/src/tt/controller/tasks.py @@ -1,8 +1,8 @@ import json from datetime import datetime from peewee import fn -from ..db import db, Task, Category, TaskStatus, SavedSearch from peewee import Case, Value +from ..db import db, Task, Category, TaskStatus, SavedSearch def category_lookup(category): diff --git a/src/tt/tui/editor.py b/src/tt/tui/editor.py index 270641d..32a10c2 100644 --- a/src/tt/tui/editor.py +++ b/src/tt/tui/editor.py @@ -360,7 +360,6 @@ class TableEditor(App): # preprocess/validate the field being saved try: update_data[field] = cconf.preprocessor(new_value) - # raise Exception(update_data) self.update_item_callback(item_id, **update_data) self.refresh_data() except NotifyValidationError as e: diff --git a/src/tt/tui/tasks.py b/src/tt/tui/tasks.py index e2c7949..cc7c4d6 100644 --- a/src/tt/tui/tasks.py +++ b/src/tt/tui/tasks.py @@ -91,7 +91,9 @@ class TT(TableEditor): self._load_view(event.value) self.refresh_tasks(restore_cursor=False) else: - super().on_input_submitted(event) + # https://textual.textualize.io/guide/events/#bubbling + # not needed + # super().on_input_submitted(event) return def refresh_items(self):