예제 #1
0
def GetAllTaskOfProject(project_key):
  """Gets all tasks of same project."""
  return Task.query().filter(Task.project == project_key).fetch(1000)
예제 #2
0
def GetAllTaskOfTag(tag_key):
  """Gets all tasks with the tag."""
  return Task.query().filter(Task.tags == tag_key).fetch(1000)
예제 #3
0
def GetAllActionableTasks():
  """Gets all task whose status is actionable."""
  return Task.query().filter(Task.status == str(TaskStatus.actionable)).fetch(
    1000)