mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00
🎨 — Rename connect_db_at_startup function
This commit is contained in:
parent
064e43dc01
commit
d19622060f
1 changed files with 2 additions and 2 deletions
|
@ -41,12 +41,12 @@ def create_start_app_handler(appli):
|
|||
"""Warmup the server:
|
||||
setup database connection
|
||||
"""
|
||||
async def connect_db_at_startup():
|
||||
async def _get_db():
|
||||
setup_database(appli)
|
||||
|
||||
return await connect_to_db(appli)
|
||||
|
||||
return connect_db_at_startup
|
||||
return _get_db
|
||||
|
||||
|
||||
async def connect_to_db(appli):
|
||||
|
|
Loading…
Reference in a new issue