MCPcopy Create free account
hub / github.com/geekcomputers/Python / save_tasks

Function save_tasks

TaskManager.py:13–17  ·  view source on GitHub ↗
(tasks, filename="tasks.csv")

Source from the content-addressed store, hash-verified

11
12
13def save_tasks(tasks, filename="tasks.csv"):
14 with open(filename, "w", newline="") as file:
15 writer = csv.writer(file)
16 for task in tasks:
17 writer.writerow([task["task"], task["deadline"], task["completed"]])
18
19
20def add_task(task, deadline):

Callers 1

add_taskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected