This commit is contained in:
parent
e67c1aa9f3
commit
de3821aa80
@ -215,7 +215,7 @@ class PricingService:
|
||||
new_price = Decimal('0.25')
|
||||
|
||||
# Avoid huge price drops
|
||||
if current_price is not None and new_price / current_price > Decimal('0.25'):
|
||||
if current_price is not None and Decimal(str(((current_price - new_price) / current_price))) > Decimal('0.25'):
|
||||
logger.warning(f"Price drop too large for row: {row}")
|
||||
new_price = current_price
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user