MCPcopy
hub / github.com/flet-dev/flet / get_tasks

Method get_tasks

sdk/python/examples/apps/studio_gallery/todo.py:33–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 status: str = "all"
32
33 def get_tasks(self) -> list[TaskItem]:
34 return list(
35 filter(
36 lambda task: self.status == "all"
37 or self.status == "active"
38 and not task.completed
39 or self.status == "completed"
40 and task.completed,
41 self.tasks,
42 )
43 )
44
45 @property
46 def active_tasks_number(self) -> int:

Callers 1

AppFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected