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

Function load_tasks

TaskPlanner.py:4–10  ·  view source on GitHub ↗
(filename="tasks.csv")

Source from the content-addressed store, hash-verified

2
3
4def load_tasks(filename="tasks.csv"):
5 tasks = []
6 with open(filename, "r", newline="") as file:
7 reader = csv.reader(file)
8 for row in reader:
9 tasks.append({"task": row[0], "deadline": row[1], "completed": row[2]})
10 return tasks
11
12
13def save_tasks(tasks, filename="tasks.csv"):

Callers 2

add_taskFunction · 0.70
show_tasksFunction · 0.70

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected