AIdeaText commited on
Commit
4038b34
verified
1 Parent(s): 0d5ba51

Update modules/database/discourse_mongo_db.py

Browse files
modules/database/discourse_mongo_db.py CHANGED
@@ -46,7 +46,7 @@ def store_student_discourse_result(username, text1, text2, analysis_result):
46
 
47
  # Almacenar el documento en MongoDB
48
  collection = get_collection(COLLECTION_NAME)
49
- if not collection:
50
  logger.error("No se pudo obtener la colecci贸n")
51
  return False
52
 
 
46
 
47
  # Almacenar el documento en MongoDB
48
  collection = get_collection(COLLECTION_NAME)
49
+ if collection is None: # CORREGIDO: Usar 'is None' en lugar de valor booleano
50
  logger.error("No se pudo obtener la colecci贸n")
51
  return False
52