fix(qa): resolver diagnosticos estaticos, sincronizacion moodle y actualizar docs v3.6.4

This commit is contained in:
2026-10-19 14:05:58 -03:00
parent 9ad70d69e9
commit 6057b6d206
47 changed files with 372 additions and 232 deletions
+8 -5
View File
@@ -1,3 +1,4 @@
from typing import Dict, Any, List, Optional
import urllib.request
import csv
import io
@@ -460,10 +461,10 @@ class GoogleSheetsImporter:
row_counter += 1
aula_raw = r.get('aula', '').strip()
room_info = self.normalize_room(aula_raw)
is_virtual = bool(room_info and ('VIRTUAL' in room_info.get('code', '').upper() or room_info.get('building') == 'Campus Virtual'))
is_virtual = bool(room_info and ('VIRTUAL' in str(room_info.get('code', '')).upper() or room_info.get('building') == 'Campus Virtual'))
# Calcular fecha tentativa
target_date = ref_monday + timedelta(days=day_idx)
target_date = ref_monday + timedelta(days=int(day_idx))
if manual_dt and norm_day == normalize_day_name(['Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'][manual_dt.weekday()]):
target_date = manual_dt
@@ -564,7 +565,7 @@ class GoogleSheetsImporter:
if manual_w < 6:
allowed_days = [dias_esp[manual_w]]
stats = {
stats: Dict[str, Any] = {
'total_rows_processed': 0,
'matching_rows': 0,
'careers_created': 0,
@@ -734,9 +735,11 @@ class GoogleSheetsImporter:
room_info = self.normalize_room(aula_raw)
classroom = None
if room_info:
room_key = (room_info['building'].upper(), room_info['code'].upper())
b_str = str(room_info.get('building', '')).upper()
c_str = str(room_info.get('code', '')).upper()
room_key = (b_str, c_str)
classroom = classrooms_cache.get(room_key)
b_entity = buildings_cache.get(room_info['building'].upper())
b_entity = buildings_cache.get(b_str)
if not classroom:
if import_classrooms:
classroom = Classroom(