Skip to content

Commit

Permalink
just list ids
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencarlislewalker committed Sep 12, 2024
1 parent 9ae0e76 commit 3dead36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/iidda_api/get_dataset_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ async def get_dataset_data(session, title, version):
filter(lambda asset: asset['name'] == title + '.json', latest_version_metadata))
elif response_type == "github_url":
return {"github_url": version_in_question["html_url"]}
elif response_type == "dataset_ids":
return {}
else:
latest_version_metadata = list(filter(
lambda asset: asset['name'] == title + "_" + response_type + '.json', latest_version_metadata))
Expand Down
2 changes: 1 addition & 1 deletion python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def metadata(
default=None, description="Return metadata for the datasets specified."),
jq_query: str = Query(None, description="JSON filter written in jq notation. Filter is applied to the metadata of the selected response_type. Cannot be used in conjuction with dataset_ids, key, and metadata_search parameters. Docs: https://stedolan.github.io/jq/"),
response_type=Query("metadata", enum=sorted(
["github_url", "metadata", "csv_dialect", "data_dictionary", "columns"]))
["github_url", "metadata", "csv_dialect", "data_dictionary", "columns", "ids"]))
):
"""
Get metadata for datasets. There are 3 ways to filter datasets; they cannot be used in conjuction:
Expand Down

0 comments on commit 3dead36

Please sign in to comment.