fix bugs
This commit is contained in:
parent
9a33f420c1
commit
190260bbf0
@ -144,7 +144,7 @@ async def newClient(clientId, ws):
|
|||||||
return client
|
return client
|
||||||
|
|
||||||
async def newBoat(boatId, name, ws):
|
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)
|
print("new boat connected: " + boatId)
|
||||||
for bo in boats:
|
for bo in boats:
|
||||||
if (bo['id'] == boat['id']):
|
if (bo['id'] == boat['id']):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user