Files
eamco_auto_api/app/constants.py

21 lines
553 B
Python

"""
EAMCO Auto API Constants
This file contains tank configuration and other constants used throughout
the auto-delivery management service.
"""
# Default tank size in gallons (most common residential oil tank)
DEFAULT_TANK_SIZE_GALLONS = 275
# Maximum fill amounts for different tank sizes (gallons we can actually fill)
# Tanks cannot be filled to 100% capacity for safety reasons
TANK_MAX_FILLS = {
275: 240,
330: 280,
500: 475,
}
# Default max fill when tank size is unknown (based on 275 gallon tank)
DEFAULT_MAX_FILL_GALLONS = 240