Set app.ctx.mask during startup
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone Build is passing
				
			This commit is contained in:
		| @@ -548,6 +548,7 @@ def handler(signum, frame): | |||||||
|  |  | ||||||
| @app.listener("before_server_start") | @app.listener("before_server_start") | ||||||
| async def setup_db(app, loop): | async def setup_db(app, loop): | ||||||
|  |     app.ctx.mask = None | ||||||
|     app.ctx.db = AsyncIOMotorClient(MONGO_URI).get_default_database() |     app.ctx.db = AsyncIOMotorClient(MONGO_URI).get_default_database() | ||||||
|     app.ctx.coll = app.ctx.db[MONGO_COLLECTION] |     app.ctx.coll = app.ctx.db[MONGO_COLLECTION] | ||||||
|     app.ctx.coll.create_index([ |     app.ctx.coll.create_index([ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user