From db112cade634e072321cd3fc4e7509d025b85985 Mon Sep 17 00:00:00 2001 From: Joe Mancuso Date: Sun, 27 Oct 2024 12:10:55 -0400 Subject: [PATCH] format --- src/masoniteorm/connections/PostgresConnection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/masoniteorm/connections/PostgresConnection.py b/src/masoniteorm/connections/PostgresConnection.py index 5304365a..8864411e 100644 --- a/src/masoniteorm/connections/PostgresConnection.py +++ b/src/masoniteorm/connections/PostgresConnection.py @@ -63,7 +63,8 @@ def make_connection(self): if not CONNECTION_POOL: CONNECTION_POOL.append( pool.SimpleConnectionPool( - 1, 20, # minconn, maxconn + 1, + 20, # minconn, maxconn database=self.database, user=self.user, password=self.password, @@ -131,7 +132,6 @@ def get_transaction_level(self): def set_cursor(self): from psycopg2.extras import RealDictCursor - self._cursor = self._connection.cursor(cursor_factory=RealDictCursor) return self._cursor