1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2017-10-05 21:13:42 +02:00
parent 314e7c6acd
commit 7323981c52
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C27544372FBB445D

4
db.py
View file

@ -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"]