

def read_overview(self, user):
    self._read_leaderboard()
    try:
        users_score = self.user_scores[user.username]
        score = users_score.score
        rank = self._get_rank(score)[0]
        return {
            'key': self.key,
            'score': score,
            'rank': rank,
            'time': users_score.score_time,
        }
    except KeyError:
        return None

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