Loading src/common/mixins/postgres.py +3 −3 Original line number Diff line number Diff line Loading @@ -6,11 +6,11 @@ import psycopg2 class Postgres_Mixin(): """Serve common connection method for postgres.""" def open(self, search_paths='public'): def open(self, search_path='public'): """ Explicitly open the database connection :note: This will send email to Database.CONNECTION_ERR_EMAIL_RECPS if unable to establish connection :param search_path: the search path to default to :return: True if connection established, else false """ Loading Loading
src/common/mixins/postgres.py +3 −3 Original line number Diff line number Diff line Loading @@ -6,11 +6,11 @@ import psycopg2 class Postgres_Mixin(): """Serve common connection method for postgres.""" def open(self, search_paths='public'): def open(self, search_path='public'): """ Explicitly open the database connection :note: This will send email to Database.CONNECTION_ERR_EMAIL_RECPS if unable to establish connection :param search_path: the search path to default to :return: True if connection established, else false """ Loading