mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 20:36:16 +02:00
finally
This commit is contained in:
@@ -91,10 +91,7 @@ async def api_copilot_hooker(copilot_id, amount):
|
|||||||
and int(amount) > copilot.animation3threshold
|
and int(amount) > copilot.animation3threshold
|
||||||
):
|
):
|
||||||
data = copilot.animation3
|
data = copilot.animation3
|
||||||
print(data)
|
global connected_websockets
|
||||||
async with websocket(
|
connected_websockets[copilot_id] = copilot_id + "-" + data
|
||||||
"/ws/compose/" + copilot_id
|
|
||||||
) as the_websocket:
|
|
||||||
await the_websocket.send(data)
|
|
||||||
print(data)
|
|
||||||
return "", HTTPStatus.OK
|
return "", HTTPStatus.OK
|
Reference in New Issue
Block a user