diff --git a/app/services/pricing.py b/app/services/pricing.py index 199a178..3fdc1d3 100644 --- a/app/services/pricing.py +++ b/app/services/pricing.py @@ -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