def check_unique_input(edits, ignore=''):
    """
    Function which checks whether or not a selection of PyQt5.QLineEdits has only unique inputs

    Parameters
    ----------
    edits: iterable
        iterable of QLineEdits
    ignore: str
        string which is allowed to appear multiple times

    Returns
    -------
    bool: whether only unique input is in edits
    """
    # Number of edits to check
    n_edits = len(edits)

    # Loop over edits and compare input
    for i in range(n_edits):
        name_i = edits[i].text() or edits[i].placeholderText()
        if name_i == ignore:
            continue
        for j in range(i+1, n_edits):
            name_j = edits[j].text() or edits[j].placeholderText()
            if name_i == name_j:
                return False
    return True