fix: 🐛 fixed issue in both back and frontend that would prevent geojson data from beeing loaded
This commit is contained in:
@ -22,13 +22,10 @@ class VehicleHandler:
|
||||
return vehicle
|
||||
|
||||
# handles getting a vehicle identified with its id from the database
|
||||
def getVehicle(self, vehicleID:int):
|
||||
def getVehicle(self, vehicleID:int) -> Vehicle:
|
||||
vehicle = self.dbSession.query(Vehicle).filter_by(id=vehicleID).first()
|
||||
|
||||
return {
|
||||
"id": vehicle.id,
|
||||
"name": vehicle.name
|
||||
}
|
||||
return vehicle
|
||||
|
||||
# handles getting all vehicles from database
|
||||
def getVehicles(self):
|
||||
|
||||
Reference in New Issue
Block a user