mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-09 16:38:32 +01:00
fix some types
This commit is contained in:
@@ -223,16 +223,16 @@ def balanceTool():
|
|||||||
cur += option[i].prio[i%5]
|
cur += option[i].prio[i%5]
|
||||||
|
|
||||||
if theoMin/cur > threshold:
|
if theoMin/cur > threshold:
|
||||||
alternateOptionsAboveThreshold += [option]
|
alternateOptionsAboveThreshold.append(list(option))
|
||||||
|
|
||||||
if cur < best:
|
if cur < best:
|
||||||
best = cur
|
best = cur
|
||||||
bestOption = option
|
bestOption = list(option)
|
||||||
alternateOptions = []
|
alternateOptions = []
|
||||||
alternateOptions += [option]
|
alternateOptions.append(list(option))
|
||||||
print("Option Found Quality: {}%".format(str(int(theoMin/cur*100))))
|
print("Option Found Quality: {}%".format(str(int(theoMin/cur*100))))
|
||||||
elif cur == best:
|
elif cur == best:
|
||||||
alternateOptions += [option]
|
alternateOptions.append(list(option))
|
||||||
|
|
||||||
alternateOptions += alternateOptionsAboveThreshold
|
alternateOptions += alternateOptionsAboveThreshold
|
||||||
retDict = { "left" : {}, "right" : {} }
|
retDict = { "left" : {}, "right" : {} }
|
||||||
@@ -274,7 +274,6 @@ def balanceTool():
|
|||||||
currDiff = diff;
|
currDiff = diff;
|
||||||
print("Option found rating mu-diff: {}".format(diff))
|
print("Option found rating mu-diff: {}".format(diff))
|
||||||
bestOptionWithRating = o
|
bestOptionWithRating = o
|
||||||
best =
|
|
||||||
|
|
||||||
for i in range(5):
|
for i in range(5):
|
||||||
retDict["left"].update( { positions[i] : bestOptionWithRating[i].name })
|
retDict["left"].update( { positions[i] : bestOptionWithRating[i].name })
|
||||||
|
|||||||
Reference in New Issue
Block a user