aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJames Woglom <j@wogloms.net>2022-08-29 20:27:34 -0400
committerJames Woglom <j@wogloms.net>2022-08-29 20:27:34 -0400
commit4a9f55adda55a35c67c5e6699aa71fa56295c9b4 (patch)
tree74b3868fc121efdd88e2c1f64b14789b4f7750ab /app
parentUse angular primitives to toggle (diff)
downloadmetube-4a9f55adda55a35c67c5e6699aa71fa56295c9b4.tar.gz
metube-4a9f55adda55a35c67c5e6699aa71fa56295c9b4.tar.bz2
metube-4a9f55adda55a35c67c5e6699aa71fa56295c9b4.zip
Propagate configuration on load via downloads socket
Diffstat (limited to 'app')
-rw-r--r--app/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/main.py b/app/main.py
index dcacfec..bbdfc87 100644
--- a/app/main.py
+++ b/app/main.py
@@ -99,6 +99,7 @@ async def delete(request):
@sio.event
async def connect(sid, environ):
await sio.emit('all', serializer.encode(dqueue.get()), to=sid)
+ await sio.emit('configuration', serializer.encode(config), to=sid)
@routes.get(config.URL_PREFIX)
def index(request):
bgstack15