Updated claude big changes

This commit is contained in:
2026-01-29 08:43:45 -05:00
parent ac4354716b
commit 764c094eed
6 changed files with 112 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ from decimal import Decimal
from app.models.auto import Auto_Delivery, Tickets_Auto_Delivery, Auto_Temp
from app.models.delivery import Delivery
from app.constants import DEFAULT_TANK_SIZE_GALLONS
logger = logging.getLogger(__name__)
@@ -90,9 +91,9 @@ def estimate_customer_gallons(update_db: int):
).order_by(Tickets_Auto_Delivery.fill_date).all()
# Get tank size and hot water setting
tank_size = Decimal(ad.tank_size) if ad.tank_size else Decimal('275')
tank_size = Decimal(ad.tank_size) if ad.tank_size else Decimal(DEFAULT_TANK_SIZE_GALLONS)
# Adjust effective tank capacity (not filled to 100%)
if tank_size == 275:
if tank_size == DEFAULT_TANK_SIZE_GALLONS:
effective_tank = Decimal('250')
elif tank_size == 330:
effective_tank = Decimal('300')