feat: ✨ added broken map for supporting multiple tracks (will likely get removed) and added colorless rendering for tracks in point cloud
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 47s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 47s
This commit is contained in:
@ -10,11 +10,11 @@ class VehicleHandler:
|
||||
pass
|
||||
|
||||
# handles creating a vehicle and storing it in the database
|
||||
def createVehicle(self, name:str) -> Vehicle:
|
||||
def createVehicle(self, name:str, licenseplate:str) -> Vehicle:
|
||||
if not name:
|
||||
raise ValueError("name is empty")
|
||||
|
||||
vehicle = Vehicle(name=name)
|
||||
vehicle = Vehicle(name=name, licenseplate=licenseplate)
|
||||
|
||||
self.dbSession.add(vehicle)
|
||||
self.dbSession.commit()
|
||||
@ -34,7 +34,8 @@ class VehicleHandler:
|
||||
driverList = [
|
||||
{
|
||||
"id": vehicle.id,
|
||||
"name": vehicle.name
|
||||
"name": vehicle.name,
|
||||
"licensePlate": vehicle.licenseplate
|
||||
}
|
||||
# iterates all drivers and appends them to the list
|
||||
for vehicle in vehicles
|
||||
|
Reference in New Issue
Block a user