Updated claude big changes

This commit is contained in:
2026-01-29 08:43:56 -05:00
parent 2dbd3ea53f
commit eb4740c553
24 changed files with 388 additions and 429 deletions

View File

@@ -1,8 +1,8 @@
import logging
from flask import jsonify
from sqlalchemy.sql import func
from app.reports import reports
from app import db
from app.common.responses import success_response
from app.classes.customer import Customer_Customer
@@ -19,7 +19,7 @@ def oil_total_gallons():
.group_by(Delivery_Delivery.id)\
.all()
return jsonify({"ok": True, "oil": total_oil }), 200
return success_response({"oil": total_oil})
@reports.route("/customers/list", methods=["GET"])
def customer_list():
@@ -42,6 +42,4 @@ def customer_list():
}
for customer in customers
]
response = jsonify({"ok": True, "customers": customer_data})
return response, 200
return success_response({"customers": customer_data})