Skip to content

Commit

Permalink
add: $select parameter to submissions.get_table
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsay-stevens committed Mar 28, 2024
1 parent fa3ddff commit 3343741
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyodk/_endpoints/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def get_table(
wkt: bool | None = None,
filter: str | None = None,
expand: str | None = None,
select: str | None = None,
) -> dict:
"""
Read Submission data.
Expand All @@ -158,6 +159,7 @@ def get_table(
built-in functions now, year, month, day, hour, minute, second.
:param expand: Repetitions, which should get expanded. Currently, only `*` (star)
is implemented, which expands all repetitions.
:param select: If provided, will return only the selected fields.
:return: A dictionary representation of the OData JSON document.
"""
Expand All @@ -174,6 +176,7 @@ def get_table(
"$wkt": wkt,
"$filter": filter,
"$expand": expand,
"$select": select,
}.items()
if v is not None
}
Expand Down

0 comments on commit 3343741

Please sign in to comment.