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

Update modules/database/discourse_mongo_db.py

Browse files
modules/database/discourse_mongo_db.py CHANGED
@@ -70,7 +70,7 @@ def get_student_discourse_analysis(username, limit=10):
70
  logger.info(f"Recuperando an谩lisis de discurso para {username}")
71
 
72
  collection = get_collection(COLLECTION_NAME)
73
- if not collection:
74
  logger.error("No se pudo obtener la colecci贸n")
75
  return []
76
 
 
70
  logger.info(f"Recuperando an谩lisis de discurso para {username}")
71
 
72
  collection = get_collection(COLLECTION_NAME)
73
+ if collection is not None: # CORRECTO
74
  logger.error("No se pudo obtener la colecci贸n")
75
  return []
76