ashmib commited on
Commit
2001d0c
·
verified ·
1 Parent(s): 8ebf5b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -23,13 +23,13 @@ def init_db():
23
  conn.commit()
24
  conn.close()
25
 
26
- def store_feedback(question, selected_answer, rating, feedback_text):
27
  conn = sqlite3.connect(DB_FILE)
28
  cursor = conn.cursor()
29
  cursor.execute("""
30
- INSERT INTO feedback (question, selected_answer, rating, feedback_text)
31
- VALUES (?, ?, ?, ?)
32
- """, (question, selected_answer, rating, feedback_text))
33
  conn.commit()
34
  conn.close()
35
 
 
23
  conn.commit()
24
  conn.close()
25
 
26
+ def store_feedback(question, rating, feedback_text):
27
  conn = sqlite3.connect(DB_FILE)
28
  cursor = conn.cursor()
29
  cursor.execute("""
30
+ INSERT INTO feedback (question, rating, feedback_text)
31
+ VALUES (?, ?, ?)
32
+ """, (question, rating, feedback_text))
33
  conn.commit()
34
  conn.close()
35