fix(database): Fixed the database connection
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import psycopg
|
||||
import os
|
||||
|
||||
def PSQLConnect():
|
||||
conn = psycopg.connect(os.getenv('POSTDRESS_CONNECTION'))
|
||||
return conn
|
||||
|
||||
def PSQLCursor(conn):
|
||||
cur = conn.cursor()
|
||||
return cur
|
||||
Reference in New Issue
Block a user