fix(database): Fixed the database connection
This commit is contained in:
1 parent
33c3b81f6e
commit
7786680f43
2 files changed
+15
-31
No files matched your search
@@ -1,10 +0,0 @@
|
||||
import psycopg2
|
||||
import os
|
||||
|
||||
def PSQLConnect():
|
||||
conn = psycopg2.connect(os.getenv('POSTGRES_URL'))
|
||||
return conn
|
||||
|
||||
def PSQLCursor(conn):
|
||||
cur = conn.cursor()
|
||||
return cur
|
||||
Reference in new issue
Block a user