Follow-up list without a salt: the kit identifies each patient by pac_id

This commit is contained in:
2026-11-11 23:25:08 -06:00
committed by Angel Capetillo Zavala
parent 8b47f1522d
commit 2ca86232c9
+1 -2
View File
@@ -19,7 +19,6 @@ from indicadores_kit.serving.seguimiento import PaginaFuera, PedidoInvalido, seg
from sqlmodel import Session
FECHA = re.compile(r"\d{4}-\d{2}-\d{2}")
SAL_POR_OMISION = "dev-simulado" # los datos de DEV son simulados; con datos reales, la sal sale del entorno
def en_dev() -> bool:
@@ -40,7 +39,7 @@ def blueprint_de_seguimiento(get_session: Callable[[], Session]) -> Blueprint:
return jsonify({"error": str(error)}), 400
sesion = get_session()
try:
cuerpo = seguimiento_de(sesion, sal=os.environ.get("SEGUIMIENTO_SAL", SAL_POR_OMISION), **pedido)
cuerpo = seguimiento_de(sesion, **pedido)
except PedidoInvalido as error:
return jsonify({"error": str(error)}), 400
except PaginaFuera as error: