Skip to content

Commit

Permalink
Patched sqli/services/db.py
Browse files Browse the repository at this point in the history
  • Loading branch information
patched.codes[bot] committed Dec 20, 2024
1 parent a1d8f89 commit 7b7288a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sqli/services/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 7b7288a

Please sign in to comment.