From de3821aa80793b53b317bdf7031c844bd44ab3ad Mon Sep 17 00:00:00 2001 From: zman Date: Sat, 12 Apr 2025 14:33:03 -0400 Subject: [PATCH] asdf --- app/services/pricing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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