Skip to content

Commit

Permalink
#9 set mmr_exponent to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleVasya committed Dec 14, 2016
1 parent 55677aa commit 307e991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/balancer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def form_valid(self, form):
players = [(p.name, p.ladder_mmr) for p in form.cleaned_data.values()]

# balance teams and save result
mmr_exponent = 3
mmr_exponent = 1 # TODO: make DjangoSolo setting for this
answers = balance_teams(players, mmr_exponent)

with transaction.atomic():
Expand Down Expand Up @@ -49,7 +49,7 @@ def form_valid(self, form):
mmrs = [form.cleaned_data['MMR_%s' % i] for i in xrange(1, 11)]

# balance teams and save result
mmr_exponent = 3
mmr_exponent = 1 # TODO: make DjangoSolo setting for this
answers = balance_teams(zip(players, mmrs), mmr_exponent)

self.result = BalanceResult.objects.create(mmr_exponent=mmr_exponent)
Expand Down

0 comments on commit 307e991

Please sign in to comment.