Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions sparcl/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,9 @@ def find(
constraints={}, # dict(fname) = [op, param, ...]
#! exclude_unauth = True, # Not implemented yet
limit=500,
offset=0,
sort=None,
# count=False,
count=False,
# dataset_list=None,
verbose=None,
):
Expand All @@ -509,6 +510,9 @@ def find(
limit (:obj:`int`, optional): Maximum number of records to
return. Defaults to 500.

offset (:obj:`int`, optional): Number of records to skip before
returning records. Defaults to 0.

sort (:obj:`list`, optional): Comma separated list of fields
to sort by. Defaults to None. (no sorting)

Expand Down Expand Up @@ -550,7 +554,8 @@ def find(
}
uparams = dict(
limit=limit,
#! count='Y' if count else 'N'
offset=offset,
count='Y' if count else 'N'
)
if sort is not None:
uparams["sort"] = sort
Expand Down