Updated auto code and change weather api

This commit is contained in:
2025-10-12 16:09:45 -04:00
parent c69d48dd74
commit ed2e6f96b6
8 changed files with 352 additions and 308 deletions

View File

@@ -1,8 +1,7 @@
from fastapi import APIRouter, Request, Depends
from fastapi import APIRouter
from fastapi.responses import JSONResponse
from fastapi.encoders import jsonable_encoder
from database import session, get_db
from sqlalchemy.orm import Session
from database import session
from app.models.auto import Auto_Delivery, Tickets_Auto_Delivery
from app.models.delivery import Delivery
@@ -113,6 +112,6 @@ def update_auto_status(auto_id: int):
if update_status:
update_status.auto_status = 3
db.commit()
session.commit()
return {"message": "Auto status updated to 3"}
return {"error": "Auto delivery not found"}