Update id parameter in history endpoint

This commit is contained in:
sHa
2024-03-13 09:39:58 +00:00
parent c8f02f8526
commit 37703a872f

2
app.py
View File

@@ -166,7 +166,7 @@ async def last_requests(
@app.get("/api/__history/{namespace}", status_code=status.HTTP_200_OK) @app.get("/api/__history/{namespace}", status_code=status.HTTP_200_OK)
async def history( async def history(
response: Response, response: Response,
id: int = 0, id: int | None = None,
namespace: str = "requests", namespace: str = "requests",
) -> Answer | RequestData | list[RequestData]: ) -> Answer | RequestData | list[RequestData]:
if not check_namespace(namespace): if not check_namespace(namespace):