Skip to content
This repository was archived by the owner on Jun 16, 2023. It is now read-only.

Commit dd80f47

Browse files
committed
fixing bug
1 parent 6762dc5 commit dd80f47

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed

__pycache__/__init__.cpython-37.pyc

-231 Bytes
Binary file not shown.
-231 Bytes
Binary file not shown.
-4.15 KB
Binary file not shown.

dbsession/dbsession.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def __init__(self, pool):
1414
"""
1515
pool (object): psycopg2 pool instance
1616
"""
17+
self.pool = pool
1718
self.connection = pool.getconn()
1819

1920
def query(self, module_function, *query_params):
@@ -41,7 +42,7 @@ def rollback(self):
4142
self.connection.rollback()
4243

4344
def close(self):
44-
connection_pool.putconn(self.connection)
45+
self.pool.putconn(self.connection)
4546

4647

4748
def _unwrap(self, value, wrapper, many=True):

0 commit comments

Comments
 (0)