Update modules/database.py
Browse files- modules/database.py +3 -0
modules/database.py
CHANGED
@@ -236,6 +236,9 @@ def store_discourse_analysis_result(username, text1, text2, graph1, graph2):
|
|
236 |
###############################################################################################################
|
237 |
def store_chat_history(username, messages):
|
238 |
try:
|
|
|
|
|
|
|
239 |
chat_document = {
|
240 |
'username': username,
|
241 |
'timestamp': datetime.utcnow(),
|
|
|
236 |
###############################################################################################################
|
237 |
def store_chat_history(username, messages):
|
238 |
try:
|
239 |
+
logger.info(f"Attempting to save chat history for user: {username}")
|
240 |
+
logger.debug(f"Messages to save: {messages}")
|
241 |
+
|
242 |
chat_document = {
|
243 |
'username': username,
|
244 |
'timestamp': datetime.utcnow(),
|