Removed data length

This commit is contained in:
Emily 2019-08-01 01:10:52 +02:00
parent 858b95fb48
commit fbae43c542

View File

@ -104,9 +104,8 @@ async def handle(ws, path):
await send_error(b"Flight not found") await send_error(b"Flight not found")
else: else:
data = flights[uuid].get_all() data = flights[uuid].get_all()
await cli.ws.send(struct.pack(b"<BI%ds" % len(data), await cli.ws.send(struct.pack(b"<B%ds" % len(data),
3, # packet_id 3, # packet_id
len(data),
data data
)) ))