From faa9471d76a9a3cb5b070937e68a22d33f2b3b08 Mon Sep 17 00:00:00 2001 From: CWestICL Date: Thu, 21 Sep 2023 16:25:58 +0100 Subject: [PATCH] DSR start parameter --- datahub/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datahub/main.py b/datahub/main.py index 9318def..845d712 100644 --- a/datahub/main.py +++ b/datahub/main.py @@ -155,7 +155,9 @@ def upload_dsr(file: UploadFile) -> dict[str, str | None]: @app.get("/dsr", response_class=ORJSONResponse) -def get_dsr_data(start: int = 0, end: int | None = None) -> ORJSONResponse: +def get_dsr_data( + start: int = len(dt.dsr_data) - 1, end: int | None = None +) -> ORJSONResponse: """GET method function for getting DSR data as JSON. It takes optional query parameters of: