mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-07 15:41:35 +01:00
prepare api query
This commit is contained in:
@@ -204,7 +204,8 @@ def balanceTool():
|
|||||||
v[i] = 5
|
v[i] = 5
|
||||||
else:
|
else:
|
||||||
v[i] = int(v[i])
|
v[i] = int(v[i])
|
||||||
players += [Player(k, v)]
|
p = Player(k, v)
|
||||||
|
players += [p]
|
||||||
|
|
||||||
# theoretical minnimum #
|
# theoretical minnimum #
|
||||||
theoMin = sum([ min(p.prio) for p in players ])
|
theoMin = sum([ min(p.prio) for p in players ])
|
||||||
@@ -259,13 +260,13 @@ def balanceTool():
|
|||||||
|
|
||||||
for pil in firstHalfPiL:
|
for pil in firstHalfPiL:
|
||||||
if not pil:
|
if not pil:
|
||||||
continue
|
continue # get rating from api here
|
||||||
else:
|
else:
|
||||||
firstHalfVal += pil.mu
|
firstHalfVal += pil.mu
|
||||||
|
|
||||||
for pil in secondHalfPiL:
|
for pil in secondHalfPiL:
|
||||||
if not pil:
|
if not pil:
|
||||||
continue
|
continue # getRatingFromApi(pil.name)
|
||||||
else:
|
else:
|
||||||
secondHalfVal += pil.mu
|
secondHalfVal += pil.mu
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user