Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def save_feedback_db(feedback):
|
|
27 |
# Create a new connection for the current thread
|
28 |
with sqlite3.connect("feedback.db") as conn:
|
29 |
cursor = conn.cursor()
|
30 |
-
cursor.execute("CREATE TABLE IF NOT EXISTS
|
31 |
-
cursor.execute("INSERT INTO
|
32 |
conn.commit()
|
33 |
return "Thank you for your feedback!"
|
34 |
else:
|
|
|
27 |
# Create a new connection for the current thread
|
28 |
with sqlite3.connect("feedback.db") as conn:
|
29 |
cursor = conn.cursor()
|
30 |
+
cursor.execute("CREATE TABLE IF NOT EXISTS studio_feedback (id INTEGER PRIMARY KEY, comment TEXT)")
|
31 |
+
cursor.execute("INSERT INTO studio_feedback (comment) VALUES (?)", (feedback,))
|
32 |
conn.commit()
|
33 |
return "Thank you for your feedback!"
|
34 |
else:
|