Finish implementation and tests for the cheat system #3

Closed
m wants to merge 67 commits from cheat-refactor into master
1 changed files with 2 additions and 0 deletions
Showing only changes of commit eae7ec6539 - Show all commits

View File

@ -325,6 +325,8 @@ class Agora(object):
next_max = float(ads[competitor_index][3])
our_max_adjusted = next_max - 0.01
if our_max_adjusted < float(settings.Agora.MinMargin):
our_max_adjusted = float(settings.Agora.MinMargin)
if our_max_adjusted > float(settings.Agora.MaxMargin):
our_max_adjusted = float(settings.Agora.MaxMargin)
# Lowball next competitor