Ejemplo n.º 1
0
def delete_command(
    n=-1, p=-1, t=-1  # id of the note to delete  # id of the project to delete  # id of the task to delete
):
    """
    Delete the note, project or task specified.
    """
    c = conn()
    if n > 0:
        Note.delete(c, n)
    elif p > 0:
        Project.delete(c, p)
    elif t > 0:
        Task.delete(c, t)
    else:
        raise Exception()