fix deprecation
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user