Add minimum check to Agora autoprice
This commit is contained in:
parent
37aad77b5d
commit
f3df9283db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue