Spaces:
Runtime error
Runtime error
Update data/Data.py
Browse files- data/Data.py +3 -2
data/Data.py
CHANGED
|
@@ -18,8 +18,6 @@ class Data:
|
|
| 18 |
}]
|
| 19 |
|
| 20 |
@staticmethod
|
| 21 |
-
'''def connect():
|
| 22 |
-
return psycopg2.connect(**st.secrets["postgres"])'''
|
| 23 |
def connect():
|
| 24 |
conn = psycopg2.connect(**{
|
| 25 |
"host": "blau-production.cvcvpaamxkwo.us-east-2.rds.amazonaws.com",
|
|
@@ -29,6 +27,9 @@ class Data:
|
|
| 29 |
"password": "WoUYGWzI6J8IgqHCNDjLiifHwQvSdRj"
|
| 30 |
})
|
| 31 |
return conn
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
def __init__(self, recycler_id: int):
|
| 34 |
self.recycler_id = recycler_id
|
|
|
|
| 18 |
}]
|
| 19 |
|
| 20 |
@staticmethod
|
|
|
|
|
|
|
| 21 |
def connect():
|
| 22 |
conn = psycopg2.connect(**{
|
| 23 |
"host": "blau-production.cvcvpaamxkwo.us-east-2.rds.amazonaws.com",
|
|
|
|
| 27 |
"password": "WoUYGWzI6J8IgqHCNDjLiifHwQvSdRj"
|
| 28 |
})
|
| 29 |
return conn
|
| 30 |
+
|
| 31 |
+
#def connect():
|
| 32 |
+
# return psycopg2.connect(**st.secrets["postgres"])
|
| 33 |
|
| 34 |
def __init__(self, recycler_id: int):
|
| 35 |
self.recycler_id = recycler_id
|