Skip to content

Commit

Permalink
DSR start parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
CWestICL committed Sep 21, 2023
1 parent a7515fe commit faa9471
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datahub/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit faa9471

Please sign in to comment.