Skip to content

Commit ed4f1b7

Browse files
committed
AD_ELO_THRESHOLD set to 1300, and do take high elo into account for calculating the average per team
1 parent 85cddbb commit ed4f1b7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

balance.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
CACHE_EXPIRE = 60*10 # 10 minutes TTL.
3030
DEFAULT_RATING = 1500
3131
UNTRACKED_RATING = 9999
32-
AD_ELO_THRESHOLD = 1400
32+
AD_ELO_THRESHOLD = 1300
3333
SUPPORTED_GAMETYPES = ("ad", "ca", "ctf", "dom", "ft", "tdm")
3434
# Externally supported game types. Used by !getrating for game types the API works with.
3535
EXT_SUPPORTED_GAMETYPES = ("ad", "ca", "ctf", "dom", "ft", "tdm", "duel", "ffa")
@@ -625,9 +625,6 @@ def team_average(self, team, gametype):
625625
avg = 0
626626
if team:
627627
elos = [self.ratings[p.steam_id][gametype]["elo"] for p in team]
628-
# for ad we skip the high elo players when calculating the avg
629-
if gametype == "ad":
630-
elos = [elo for elo in elos if elo < AD_ELO_THRESHOLD]
631628
avg = mean(elos)
632629

633630
return avg

0 commit comments

Comments
 (0)