diff --git a/todoman/model.py b/todoman/model.py index 6317de07..64b6341e 100644 --- a/todoman/model.py +++ b/todoman/model.py @@ -530,7 +530,6 @@ def add_file(self, list_name, path, mtime): raise exceptions.AlreadyExists('file', list_name) from e def add_category(self, uid, category): - try: self._conn.execute( ''' INSERT INTO categories ( @@ -800,7 +799,7 @@ def _todo_from_db(self, row): todo.status = row['status'] todo.description = row['description'] todo.location = row['location'] - todo.categories = [] +# todo.categories = [] #row['categories'] # TODO: category korrekt befüllen todo.sequence = row['sequence'] @@ -959,6 +958,9 @@ def update_cache(self): self.cache.save_to_disk() + def todos(self, **kwargs): + return self.cache.todos(**kwargs) + def todo(self, id, **kwargs): return self.cache.todo(id, **kwargs)