From 7b7288acebdd82bb9cfb0a1e327e05ec5c044c0e Mon Sep 17 00:00:00 2001 From: "patched.codes[bot]" <298395+patched.codes[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 07:19:02 +0000 Subject: [PATCH] Patched sqli/services/db.py --- sqli/services/db.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sqli/services/db.py b/sqli/services/db.py index 127eb52b..7617bd62 100644 --- a/sqli/services/db.py +++ b/sqli/services/db.py @@ -21,5 +21,14 @@ async def _init_pg(app: Application): async def _close_pg(app: Application): + """Closes the PostgreSQL database connection associated with the application. + + Args: + app (Application): The application instance containing the database connection. + + Returns: + None: This method doesn't return anything. + + """ app['db'].close() await app['db'].wait_closed()