Exemple #1
0
def add_task(date, description):
    tasks[date].append(description)
    serialize_tasks(tasks)
Exemple #2
0
def add_task(date, description):
    tasks[date].append(description)
    serialize_tasks(tasks)
Exemple #3
0
def read_tasks():
    try:
        tasks = deserialize_tasks()
    except IOError:
        serialize_tasks(tasks)
        return read_tasks()
Exemple #4
0
def read_tasks():
    try:
        tasks = deserialize_tasks()
    except IOError:
        serialize_tasks(tasks)
        return read_tasks()