mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
fix
This commit is contained in:
parent
314e7c6acd
commit
7323981c52
1 changed files with 32 additions and 28 deletions
4
db.py
4
db.py
|
@ -137,6 +137,7 @@ class RocketLeague(Base):
|
|||
current_season = str(current_season)
|
||||
# Get ranked data
|
||||
# Single 1v1
|
||||
if "10" in j["rankedSeasons"][current_season]:
|
||||
self.single_mmr = j["rankedSeasons"][current_season]["10"]["rankPoints"]
|
||||
if j["rankedSeasons"][current_season]["10"]["matchesPlayed"] >= 10:
|
||||
self.single_rank = j["rankedSeasons"][current_season]["10"]["tier"]
|
||||
|
@ -145,6 +146,7 @@ class RocketLeague(Base):
|
|||
self.single_rank = None
|
||||
self.single_div = None
|
||||
# Doubles 2v2
|
||||
if "11" in j["rankedSeasons"][current_season]:
|
||||
self.doubles_mmr = j["rankedSeasons"][current_season]["11"]["rankPoints"]
|
||||
if j["rankedSeasons"][current_season]["11"]["matchesPlayed"] >= 10:
|
||||
self.doubles_rank = j["rankedSeasons"][current_season]["11"]["tier"]
|
||||
|
@ -153,6 +155,7 @@ class RocketLeague(Base):
|
|||
self.doubles_rank = None
|
||||
self.doubles_div = None
|
||||
# Standard 3v3
|
||||
if "13" in j["rankedSeasons"][current_season]:
|
||||
self.standard_mmr = j["rankedSeasons"][current_season]["13"]["rankPoints"]
|
||||
if j["rankedSeasons"][current_season]["13"]["matchesPlayed"] >= 10:
|
||||
self.standard_rank = j["rankedSeasons"][current_season]["13"]["tier"]
|
||||
|
@ -161,6 +164,7 @@ class RocketLeague(Base):
|
|||
self.standard_rank = None
|
||||
self.standard_div = None
|
||||
# Solo Standard 3v3
|
||||
if "12" in j["rankedSeasons"][current_season]:
|
||||
self.solo_std_mmr = j["rankedSeasons"][current_season]["12"]["rankPoints"]
|
||||
if j["rankedSeasons"][current_season]["12"]["matchesPlayed"] >= 10:
|
||||
self.solo_std_rank = j["rankedSeasons"][current_season]["12"]["tier"]
|
||||
|
|
Loading…
Reference in a new issue