Updated claude big changes
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user