mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
cose
This commit is contained in:
parent
daecd5f9f1
commit
14582b9edc
2 changed files with 4 additions and 4 deletions
6
db.py
6
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
|
||||
|
|
|
@ -252,7 +252,7 @@ class SPELL:
|
|||
class STATSUPDATE:
|
||||
class BRAWLHALLA:
|
||||
SOLO = "✳️ {username} ha ora <b>{rating}</b> ({delta}) Elo 1v1 su Brawlhalla!"
|
||||
TEAM = "✳️ {username} ha ora <b>{rating}</b> Elo 2v2 con il team <i>{teamname}</i> di Brawlhalla!"
|
||||
TEAM = "✳️ {username}+{other} hanno ora <b>{rating}</b> Elo 2v2 su Brawlhalla!"
|
||||
|
||||
|
||||
# Secondo me, è colpa delle stringhe.
|
||||
|
|
Loading…
Reference in a new issue