

@classmethod
def create_response(cls, top, bottom, ranking, player=None):
    response = {
        'top': top,
        'bottom': bottom,
        'ranking': ranking,
    }
    if (player is not None):
        response['player'] = player
    return response

dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/models/apiv1/leaderboards.py Leaderboard.create_response/original