Skip to content

Commit

Permalink
small bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
max-zilla committed Oct 10, 2023
1 parent 246422c commit 5cba80e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pyclowder/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_datasets(connector, host, key, collectionid):
datasetid -- the collection to get datasets of
"""

url = posixpath.join(host, "api/collections/%s/datasets?key=%s" % (host, collectionid, key)
url = posixpath.join(host, "api/collections/%s/datasets?key=%s" % (collectionid, key))

result = requests.get(url,
verify=connector.ssl_verify if connector else True)
Expand Down
1 change: 0 additions & 1 deletion pyclowder/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def delete(connector, host, key, datasetid):
"""
client = ClowderClient(host=host, key=key)
result = datasets.delete(connector, client, datasetid)
result.raise_for_status()

return json.loads(result.text)

Expand Down
1 change: 0 additions & 1 deletion pyclowder/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def delete(connector, host, key, fileid):
"""
client = ClowderClient(host=host, key=key)
result = files.delete(connector, client, fileid)
result.raise_for_status()

return json.loads(result.text)

Expand Down

0 comments on commit 5cba80e

Please sign in to comment.