From 667ceeddc9d6dee650aaef1db7d3e5c92293d7f1 Mon Sep 17 00:00:00 2001 From: cheveguerra Date: Sun, 26 Jul 2026 19:10:02 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20force=20Poll=20Full=20REST=20every=20cyc?= =?UTF-8?q?le=20for=20group=5F0=20(alarmed)=20branches=20=E2=80=94=20updat?= =?UTF-8?q?es=20Verif=20timestamp=20on=20dashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)"