major claude changes
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import logging
|
||||
from fastapi import APIRouter, HTTPException
|
||||
from database import session
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from app.script.fuel_estimator import FuelEstimator
|
||||
from app.script.temp_getter import fetch_and_store_daily_temp
|
||||
from app.script.fuel_estimator_customer import FuelEstimatorCustomer
|
||||
@@ -45,7 +48,7 @@ def update_all_customer_fuel_levels_auto():
|
||||
except Exception as e:
|
||||
session.rollback()
|
||||
# Log the exception e
|
||||
print(str(e))
|
||||
logger.error(str(e))
|
||||
return {"ok": False, "message": "An internal error occurred."}
|
||||
|
||||
|
||||
@@ -63,5 +66,5 @@ def update_all_customer_fuel_levels_normal():
|
||||
except Exception as e:
|
||||
session.rollback()
|
||||
# Log the exception e
|
||||
print(str(e))
|
||||
logger.error(str(e))
|
||||
return {"ok": False, "message": "An internal error occurred."}
|
||||
|
||||
Reference in New Issue
Block a user