diff options
Diffstat (limited to 'app/main.py')
-rw-r--r-- | app/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py index 5d59958..36c0e94 100644 --- a/app/main.py +++ b/app/main.py @@ -69,6 +69,7 @@ class Notifier(DownloadQueueNotifier): await sio.emit('cleared', serializer.encode(id))
dqueue = DownloadQueue(config, Notifier())
+app.on_startup.append(lambda app: dqueue.initialize())
@routes.post(config.URL_PREFIX + 'add')
async def add(request):
@@ -93,7 +94,6 @@ async def delete(request): @sio.event
async def connect(sid, environ):
- await dqueue.importQueue()
await sio.emit('all', serializer.encode(dqueue.get()), to=sid)
@routes.get(config.URL_PREFIX)
|