From 37703a872f65f71402193005830721c722a48020 Mon Sep 17 00:00:00 2001 From: sHa Date: Wed, 13 Mar 2024 09:39:58 +0000 Subject: [PATCH] Update id parameter in history endpoint --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 0d9b18d..102cb86 100644 --- a/app.py +++ b/app.py @@ -166,7 +166,7 @@ async def last_requests( @app.get("/api/__history/{namespace}", status_code=status.HTTP_200_OK) async def history( response: Response, - id: int = 0, + id: int | None = None, namespace: str = "requests", ) -> Answer | RequestData | list[RequestData]: if not check_namespace(namespace):