diff --git a/index.py b/index.py index 044c865..19ac889 100755 --- a/index.py +++ b/index.py @@ -2253,9 +2253,12 @@ def run_update(accounts=None, exclude=None, full_refresh=False): needs_full_update = prev_loc.get('needs_full_update', False) last_dl_epoch = prev_loc.get('last_download_epoch', 0) antiguedad_seg = time.time() - last_dl_epoch if last_dl_epoch else 999999 - + reason = None - if full_refresh: + if loc_id in group_0_ids: + # Sucursal con ALARMA ACTIVA: siempre Poll Full, sin importar antigüedad + reason = "Alarma activa — consulta forzada en cada ciclo" + elif full_refresh: reason = "Refresco total manual solicitado" elif not prev_loc: reason = "Arranque en frío (sin caché previa)"