Upload conversationDB.py
Browse filesFixed error with a single quote
- conversationDB.py +3 -0
conversationDB.py
CHANGED
@@ -67,6 +67,9 @@ class DataBase():
|
|
67 |
return messages
|
68 |
def setmessages(db,username, message_text="", bot_reply=""):
|
69 |
# Adding the record into the database
|
|
|
|
|
|
|
70 |
with SSHTunnelForwarder(
|
71 |
(db.ssh_host, db.ssh_port),
|
72 |
ssh_username=db.ssh_user,
|
|
|
67 |
return messages
|
68 |
def setmessages(db,username, message_text="", bot_reply=""):
|
69 |
# Adding the record into the database
|
70 |
+
# Replace the buggy characters:
|
71 |
+
message_text = message_text.replace("'", "")
|
72 |
+
bot_reply = bot_reply.replace("'", "")
|
73 |
with SSHTunnelForwarder(
|
74 |
(db.ssh_host, db.ssh_port),
|
75 |
ssh_username=db.ssh_user,
|