From 6b633af95efd1c04a68f8c1b7956539a53a293cb Mon Sep 17 00:00:00 2001 From: rasmus Date: Fri, 12 Jun 2026 00:17:15 +0300 Subject: [PATCH] fix deprecation --- app/doorboy-proxy.py | 2 +- app/slack.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/doorboy-proxy.py b/app/doorboy-proxy.py index 070a4bf..62561c1 100755 --- a/app/doorboy-proxy.py +++ b/app/doorboy-proxy.py @@ -29,7 +29,7 @@ assert len(DOORBOY_SECRET_WORKSHOP) >= 10 @app.listener("before_server_start") -async def setup_db(app, loop): +async def setup_db(app): # TODO: find cleaner way to do this, for more see # https://github.com/sanic-org/sanic/issues/919 app.ctx.db = AsyncIOMotorClient(MONGO_URI).get_default_database() diff --git a/app/slack.py b/app/slack.py index 81dde90..bf58026 100644 --- a/app/slack.py +++ b/app/slack.py @@ -46,7 +46,7 @@ def approvedStr(approved: bool) -> str: # consumes SLACK_DOORLOG_CALLBACK and app.ctx.db @slack_app.listener("after_server_start") -async def slack_log_fwd(app, loop): +async def slack_log_fwd(app): pipeline = [ { "$match": {