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