diff --git a/db.py b/db.py index 55d7e0b3..01d00fab 100644 --- a/db.py +++ b/db.py @@ -1340,12 +1340,12 @@ class Brawlhalla(Base, Mini): rating = DirtyDelta(self.rating) rating.value = j.get("rating") self.rating = rating.value - best_team_data = Dirty((self.best_team_name, self.best_team_rating)) + best_team_data = Dirty((self.best_team_partner_id, self.best_team_rating)) try: current_best_team = max(j.get("2v2", []), key=lambda t: j.get("rating", 0)) - self.best_team_name = current_best_team["teamname"] + self.best_team_partner_id = current_best_team["brawlhalla_id_two"] self.best_team_rating = current_best_team["rating"] - best_team_data.value = (self.best_team_name, self.best_team_rating) + best_team_data.value = (self.best_team_partner_id, self.best_team_rating) except ValueError: pass return rating, best_team_data diff --git a/strings.py b/strings.py index 0aa80fb6..541d2e86 100644 --- a/strings.py +++ b/strings.py @@ -252,7 +252,7 @@ class SPELL: class STATSUPDATE: class BRAWLHALLA: SOLO = "✳️ {username} ha ora {rating} ({delta}) Elo 1v1 su Brawlhalla!" - TEAM = "✳️ {username} ha ora {rating} Elo 2v2 con il team {teamname} di Brawlhalla!" + TEAM = "✳️ {username}+{other} hanno ora {rating} Elo 2v2 su Brawlhalla!" # Secondo me, è colpa delle stringhe.