def _from_list_dict ( cls , list_dic ) : return cls ( { _convert_id ( dic [ cls . CHAMP_ID ] ) : dict ( dic ) for dic in list_dic } )
python unify a list of dict
Takes a list of dict like objects and uses champ_id field as Id
def _from_list_dict(cls, list_dic):
        """Takes a list of dict like objects and uses `champ_id` field as Id"""
        return cls({_convert_id(dic[cls.CHAMP_ID]): dict(dic) for dic in list_dic})