Updated auto code and change weather api
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user