pjgerrits commited on
Commit
1f002c5
1 Parent(s): 70ae0b7

update db conn

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,6 @@ st.set_page_config(layout="wide")
12
  # def connect_to_db():
13
  # return psycopg2.connect(**st.secrets["postgres"])
14
 
15
- # conn = connect_to_db()
16
-
17
 
18
  # Function to connect to the database
19
  def connect_to_db():
@@ -31,6 +29,8 @@ def connect_to_db():
31
  st.error(f"An error occurred while connecting to the database: {e}")
32
  return None
33
 
 
 
34
  # Function to fetch previously saved data points
35
  def fetch_saved_data():
36
  # conn = connect_to_db()
 
12
  # def connect_to_db():
13
  # return psycopg2.connect(**st.secrets["postgres"])
14
 
 
 
15
 
16
  # Function to connect to the database
17
  def connect_to_db():
 
29
  st.error(f"An error occurred while connecting to the database: {e}")
30
  return None
31
 
32
+ conn = connect_to_db()
33
+
34
  # Function to fetch previously saved data points
35
  def fetch_saved_data():
36
  # conn = connect_to_db()