diff --git a/app/quake.py b/app/quake.py index 60c8d142..fbebab22 100644 --- a/app/quake.py +++ b/app/quake.py @@ -176,6 +176,7 @@ def get_match_stats(blob, target_player): match_data = requests.get("{}{}".format(base_url, match_endpoint)).json() fav_weapon = match_data['battleReportPersonalStatistics'][0]['bestWeapon'] accuracy = match_data['battleReportPersonalStatistics'][0]['bestWeaponAccuracyPercent'] + score = '-'.join(str(x) for x in match_data['teamScores']) for team_mate in match_data['battleReportPersonalStatistics']: if team_mate['nickname'].lower() == target_player.lower(): @@ -185,7 +186,7 @@ def get_match_stats(blob, target_player): kill_death_ratio = round(float(match_data['battleReportPersonalStatistics'][0]['kills']) / match_data['battleReportPersonalStatistics'][0]['deaths'], 2) return_blob = "Final score: {}\nK/D: {}\nFavorite Weapon: {} | {}% Accuracy\nXP Earned: {} | Favor Earned: {}".format( - match_data['teamScores'], + score, kill_death_ratio, prettify(fav_weapon), accuracy,