Update modules/database/database.py
Browse files
modules/database/database.py
CHANGED
@@ -281,8 +281,6 @@ def store_semantic_result(username, text, analysis_result):
|
|
281 |
return True
|
282 |
except Exception as e:
|
283 |
print(f"Error al guardar el análisis semántico para el usuario {username}: {str(e)}")
|
284 |
-
print(f"Tipo de excepción: {type(e).__name__}")
|
285 |
-
print(f"Detalles de la excepción: {e.args}")
|
286 |
return False
|
287 |
|
288 |
###############################################################################################################
|
@@ -327,8 +325,8 @@ def store_discourse_analysis_result(username, text1, text2, analysis_result):
|
|
327 |
analysis_document = {
|
328 |
'username': username,
|
329 |
'timestamp': datetime.utcnow(),
|
330 |
-
'text1': text1,
|
331 |
-
'text2': text2,
|
332 |
'graph1': img_str1,
|
333 |
'graph2': img_str2,
|
334 |
'combined_graph': img_str_combined,
|
|
|
281 |
return True
|
282 |
except Exception as e:
|
283 |
print(f"Error al guardar el análisis semántico para el usuario {username}: {str(e)}")
|
|
|
|
|
284 |
return False
|
285 |
|
286 |
###############################################################################################################
|
|
|
325 |
analysis_document = {
|
326 |
'username': username,
|
327 |
'timestamp': datetime.utcnow(),
|
328 |
+
#'text1': text1,
|
329 |
+
#'text2': text2,
|
330 |
'graph1': img_str1,
|
331 |
'graph2': img_str2,
|
332 |
'combined_graph': img_str_combined,
|