Skip to content

Commit

Permalink
Removed none option for query params limit and offset: there are alre…
Browse files Browse the repository at this point in the history
…ady defaults
  • Loading branch information
josvandervelde committed Nov 29, 2023
1 parent 15368cb commit 817e6d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routers/search_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def search(
examples=["huggingface", "openml"],
default=None,
),
limit: int | None = Query(ge=1, le=LIMIT_MAX, default=10),
offset: int | None = Query(ge=0, default=0),
limit: int = Query(ge=1, le=LIMIT_MAX, default=10),
offset: int = Query(ge=0, default=0),
get_all: bool = Query(
description="If true, a request to the database is made to retrieve all data. "
"If false, only the indexed information is returned.",
Expand Down

0 comments on commit 817e6d8

Please sign in to comment.