AIdeaText commited on
Commit
18516b0
verified
1 Parent(s): 33b0153

Update modules/studentact/current_situation_analysis.py

Browse files
modules/studentact/current_situation_analysis.py CHANGED
@@ -636,6 +636,12 @@ def generate_recommendations(metrics, text_type, lang_code='es'):
636
  dict: Recomendaciones organizadas por categor铆a en el idioma correspondiente
637
  """
638
  try:
 
 
 
 
 
 
639
  # Obtener umbrales seg煤n el tipo de texto
640
  thresholds = TEXT_TYPES[text_type]['thresholds']
641
 
 
636
  dict: Recomendaciones organizadas por categor铆a en el idioma correspondiente
637
  """
638
  try:
639
+ # A帽adir debug log para verificar el c贸digo de idioma recibido
640
+ logger.info(f"generate_recommendations llamado con idioma: {lang_code}")
641
+
642
+ # Comprobar que importamos RECOMMENDATIONS correctamente
643
+ logger.info(f"Idiomas disponibles en RECOMMENDATIONS: {list(RECOMMENDATIONS.keys())}")
644
+
645
  # Obtener umbrales seg煤n el tipo de texto
646
  thresholds = TEXT_TYPES[text_type]['thresholds']
647