Files
dashboard-leads/backend/diag_plantillas.py

13 lines
604 B
Python

# diag_plantillas.py — Verifica otros_general (endpoint liviano).
import time, services as S
for mes in ["TODOS", "1", "2"]:
t0 = time.time()
d = S.otros_general("2026", mes, "TODOS")
seg = time.time() - t0
p = d["matriz_plantillas"]["total"]
print(f"MES {mes:6} ({seg:.1f}s) plantillas_env={p['enviadas']} matric={p['matriculas']} "
f"always_filas={len(d['matriz_always']['filas'])} webform_filas={len(d['matriz_webform']['filas'])} "
f"asignados_total={d['matriz_asignados']['total']}")
print("OK. (2da vez el mismo mes debe ser instantaneo por cache)")