Skip to content

Commit a538a67

Browse files
em92BarelyMiSSeD
andcommitted
balance: assume ratings fetched, if all players' ratings are used from internal database
Co-authored-by: BarelyMiSSeD <weberje1@gmail.com>
1 parent efe3c6d commit a538a67

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

balance.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ def fetch_ratings(self, players, request_id):
151151
self.ratings[steam_id] = {gt: {"games": -1, "elo": int(self.db[key]), "local": True, "time": -1}}
152152
del players[steam_id]
153153

154+
if not players:
155+
self.handle_ratings_fetched(request_id, requests.codes.ok)
156+
return
157+
154158
attempts = 0
155159
last_status = 0
156160
untracked_sids = []

0 commit comments

Comments
 (0)