asdf
All checks were successful
Deploy App to Docker / deploy (push) Successful in 30s

This commit is contained in:
zman 2025-04-12 14:33:03 -04:00
parent e67c1aa9f3
commit de3821aa80

View File

@ -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