fix: 🐛 fixed issue in both back and frontend that would prevent geojson data from beeing loaded

This commit is contained in:
2025-01-09 01:15:20 +01:00
parent 77cf71e288
commit c97499196c
12 changed files with 6308 additions and 187 deletions

View File

@@ -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):