added updater function

This commit is contained in:
Ben Arc
2021-04-20 00:37:51 +01:00
parent bde9a4a2ec
commit 8b52dfc307
2 changed files with 8 additions and 4 deletions
+6
View File
@@ -64,3 +64,9 @@ async def panel(copilot_id):
HTTPStatus.NOT_FOUND, "Copilot link does not exist."
)
return await render_template("copilot/panel.html", copilot=copilot)
async def updater(data, comment, copilot):
global connected_websockets
connected_websockets[copilot] = (
shortuuid.uuid() + "-" + data + "-" + comment
)