MCPcopy Index your code
hub / github.com/flet-dev/flet / toggle_task

Function toggle_task

sdk/python/examples/community/mind_queue/main.py:305–316  ·  view source on GitHub ↗
(header: str, index: int, value: bool)

Source from the content-addressed store, hash-verified

303 save_data(data)
304
305 def toggle_task(header: str, index: int, value: bool):
306 if header not in system_data:
307 return
308 if index < 0 or index >= len(system_data[header]):
309 return
310 try:
311 system_data[header][index][2] = value
312 save_data(data)
313 close_current_dialog()
314 show_system(system_name)
315 except Exception as ex:
316 print("toggle_task error:", ex)
317
318 def delete_task(header: str, index: int):
319 if header not in system_data:

Callers 1

show_systemFunction · 0.85

Calls 3

save_dataFunction · 0.85
close_current_dialogFunction · 0.85
show_systemFunction · 0.85

Tested by

no test coverage detected