Commit 5142c2b4 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Return the set.

parent c9873a5a
...@@ -69,6 +69,8 @@ class TodoList(object): ...@@ -69,6 +69,8 @@ class TodoList(object):
projects = todo.projects() projects = todo.projects()
result = result.union(projects) result = result.union(projects)
return result
def contexts(self): def contexts(self):
""" Returns a set of all contexts in this list. """ """ Returns a set of all contexts in this list. """
result = set() result = set()
...@@ -76,6 +78,8 @@ class TodoList(object): ...@@ -76,6 +78,8 @@ class TodoList(object):
contexts = todo.contexts() contexts = todo.contexts()
result = result.union(contexts) result = result.union(contexts)
return result
def set_priority(self, p_number, p_priority): def set_priority(self, p_number, p_priority):
""" Sets the priority of the todo with the given number. """ """ Sets the priority of the todo with the given number. """
self.todo(p_number).set_priority(p_priority) self.todo(p_number).set_priority(p_priority)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment