From f7d54b9a73c401b5ea81e53873264c76ec18342a Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Wed, 9 Apr 2025 14:43:06 -0500 Subject: [PATCH] fix types --- htmx_patterns/zpages/router.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htmx_patterns/zpages/router.py b/htmx_patterns/zpages/router.py index a45ef31..65589b5 100644 --- a/htmx_patterns/zpages/router.py +++ b/htmx_patterns/zpages/router.py @@ -7,6 +7,7 @@ from pydantic import BaseModel from fastapi import APIRouter from htmx_patterns.config import get_config +from typing import Union zpages_router = APIRouter(tags=["zpages"]) @@ -35,8 +36,8 @@ class PodInfo(BaseModel): namespace: str node_name: str container_image: str - start_time: str - pod_uptime: str + start_time: Union[str, datetime] + pod_uptime: Union[str, int] class Ready(BaseModel):