fix(database): Fixed the database connection

This commit is contained in:
Kita Trofimov
2025-10-26 19:14:51 +03:00
committed by Sweetbread
parent 33c3b81f6e
commit 7786680f43
2 changed files with 15 additions and 31 deletions
-10
View File
@@ -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