def get_card_group(card, idolized):
    """
    Returns an identifier for a card's group, to help separate them by rarities
    :param card: card data from schoolido.lu api
    :param idolized: True if idolized version
    :return: card group name
    """
    return "%s-%s%d" % (card['rarity'], card['attribute'], 1 if idolized else 0)