35f18853fc
Added Functions with connect to postgress db by link from enviroment
11 lines
186 B
Python
11 lines
186 B
Python
import psycopg
|
|
import os
|
|
|
|
def PSQLConnect():
|
|
conn = psycopg.connect(os.getenv('POSTDRESS_CONNECTION'))
|
|
return conn
|
|
|
|
def PSQLCursor(conn):
|
|
cur = conn.cursor()
|
|
return cur
|