def parse_id_list(id_list) -> str:
    """ Converts a list of IDs to a comma-delimited string """
    if type(id_list) is list:
        returned = ""
        for s in id_list:
            if len(returned) > 1:
                returned += ","
            returned += str(s)
        return returned
    else:
        return id_list