def get_all_user_scores():

    users = api.user.get_all_users()

    result = []
    for user in users:
        result.append({
            "name": user['username'],
            "score": get_score(uid=user['uid'])
        })

    return sorted(result, key=lambda entry: entry['score'], reverse=True)
Gets the score for every user in the database.
dataset/ETHPy150Open IceCTF/ctf-platform/api/api/stats.py/get_all_user_scores