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

Function delete_task

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

Source from the content-addressed store, hash-verified

316 print("toggle_task error:", ex)
317
318 def delete_task(header: str, index: int):
319 if header not in system_data:
320 return
321 if index < 0 or index >= len(system_data[header]):
322 return
323 try:
324 system_data[header].pop(index)
325 save_data(data)
326 close_current_dialog()
327 show_system(system_name)
328 except Exception as ex:
329 print("delete_task error:", ex)
330
331 def edit_task(header: str, index: int):
332 if header not in system_data:

Callers 4

TaskItemViewFunction · 0.85
TaskItemViewFunction · 0.85
do_deleteFunction · 0.85
TaskItemViewFunction · 0.85

Calls 4

save_dataFunction · 0.85
close_current_dialogFunction · 0.85
show_systemFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected