Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,13 +23,13 @@ def init_db():
|
|
| 23 |
conn.commit()
|
| 24 |
conn.close()
|
| 25 |
|
| 26 |
-
def store_feedback(question,
|
| 27 |
conn = sqlite3.connect(DB_FILE)
|
| 28 |
cursor = conn.cursor()
|
| 29 |
cursor.execute("""
|
| 30 |
-
INSERT INTO feedback (question,
|
| 31 |
-
VALUES (?, ?,
|
| 32 |
-
""", (question,
|
| 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 |
|