def injury_effect_getter(record): for injury_key in record.match_injuries: injury = Injury.get(injury_key) if injury.permanent: break return injury.effect
def injury_name_getter(record): for injury_key in record.match_injuries: injury = Injury.get(injury_key) if injury.permanent: break return injury.key().name()