diff --git a/app/routers/inicio.py b/app/routers/inicio.py index 6273ee2..f2cdde3 100644 --- a/app/routers/inicio.py +++ b/app/routers/inicio.py @@ -5,14 +5,13 @@ Los textos salen de `app/textos.py`; el umbral de aviso, del parámetro `factor_ A-01 vigente por la UMA del tenant. """ -from datetime import date from typing import Annotated from fastapi import APIRouter, Depends, Request from sqlalchemy.orm import Session from starlette.responses import HTMLResponse -from app import textos +from app import fechas, textos from app.db import get_db from app.engine.aggregates import inicio_ventana from app.routers import render @@ -39,6 +38,6 @@ def inicio(request: Request, db: Annotated[Session, Depends(get_db)]) -> HTMLRes { "marco": marco, "inicio_ventana": inicio_ventana(marco.fecha_corte, marco.ventana_meses), - "hoy": date.today(), + "hoy": fechas.hoy(), # hora de México: "faltan N días" no cambia a las 18:00 }, )