This commit is contained in:
Laila van Reenen 2024-08-08 20:23:16 +02:00
parent 9a33f420c1
commit 190260bbf0
Signed by: LailaTheElf
GPG Key ID: 1F4E6EE3E6DDF769

View File

@ -144,7 +144,7 @@ async def newClient(clientId, ws):
return client
async def newBoat(boatId, name, ws):
boat = { "id": boatId, "name": name, "ws": ws, "state": "active" }
boat = { "id": boatId, "name": name, "ws": ws, "state": BOAT_STATE_AVAILABLE }
print("new boat connected: " + boatId)
for bo in boats:
if (bo['id'] == boat['id']):