def _complete(states):
    """Returns as per Task.complete depending on whether ALL elements of the given list are at least that state
    
    Priority is "none", "skipped", "revealed", "complete"; this returns the lowest priority complete value that any
    list entry has.
    """
    toReturn = "complete"
    for state in states:
        if state == "none": return "none"
        if state == "skipped": toReturn = "skipped"
        if state == "revealed" and toReturn != "skipped": toReturn = "revealed"
    
    return toReturn