def get_group_average_score(gid=None, name=None):

    group_scores = get_group_scores(gid=gid, name=name)
    total_score = sum([entry['score'] for entry in group_scores])
    return int(total_score / len(group_scores)) if len(group_scores) > 0 else 0

# Stored by the cache_stats daemon
Get the average score of teams in a group.
dataset/ETHPy150Open IceCTF/ctf-platform/api/api/stats.py/get_group_average_score