From 4d2497fd0d0ebad9a95c73d1abc42a53c256852f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Fri, 2 Dec 2022 22:20:58 +0200 Subject: [PATCH] Set app.ctx.mask during startup --- camdetect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/camdetect.py b/camdetect.py index 6e02f98..e7972d2 100755 --- a/camdetect.py +++ b/camdetect.py @@ -548,6 +548,7 @@ def handler(signum, frame): @app.listener("before_server_start") async def setup_db(app, loop): + app.ctx.mask = None app.ctx.db = AsyncIOMotorClient(MONGO_URI).get_default_database() app.ctx.coll = app.ctx.db[MONGO_COLLECTION] app.ctx.coll.create_index([