def METHOD_NAME(self, seasons_active: Sequence[int]) -> None:
    all_seasons = self.all_seasons()
    all_seasons.pop()  # remove "all time" which is not shown here
    total_seasons = len(all_seasons)
    cube_side_length = math.ceil(math.sqrt(total_seasons))
    for i, setcode in enumerate([s.get('code') for s in all_seasons]):
        season_id = total_seasons - i
        if season_id > seasons.current_season_num():
            continue
        active = season_id in seasons_active
        if setcode:
            class_name = f'ss-{setcode.lower()} ' + ('ss-common' if active else 'inactive')
        else:
            class_name = ''
        season = {
            'season_id': season_id,
            'className': class_name,
            'url': url_for('seasons.person', person_id=self.person.id, season_id=season_id) if active else '',
            'edge': (i + 1) % cube_side_length == 0,
        }
        self.seasons_active.append(season)