def convert_member(member_str):
    """
    Convert member data from database to member id list

    :param member_str: Data from Class database
    :type member_str: str
    :return: a list of member id as integer
    :rtype: list

    >>> print(convert_member("1,2,50,69"))
    [1, 2, 50, 69]
    """
    if (member_str == "0") or (member_str == ""):
        return []
    else:
        li = list(member_str.split(","))
        li = [int(item) for item in li]
        return li