mery22 commited on
Commit
e11d4a6
·
verified ·
1 Parent(s): 7cb3af0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def insert_feedback(rating, comment):
86
  cur.execute('INSERT INTO feedback (timestamp, rating, comment) VALUES (%s, %s, %s)',
87
  (timestamp, int(rating), comment))
88
  conn.commit()
89
- conn.close()
90
  return True
91
  except Exception as e:
92
  st.error(f"Error inserting feedback: {e}")
 
86
  cur.execute('INSERT INTO feedback (timestamp, rating, comment) VALUES (%s, %s, %s)',
87
  (timestamp, int(rating), comment))
88
  conn.commit()
89
+ print('submitted')
90
  return True
91
  except Exception as e:
92
  st.error(f"Error inserting feedback: {e}")