Skip to content

Commit

Permalink
Return list of blobs instead of iterator (#154)
Browse files Browse the repository at this point in the history
* Return list of blobs instead of iterator

* Bump version 2.0.16
  • Loading branch information
RupinderKaurSSB authored Jun 11, 2024
1 parent 1d176f9 commit 0363609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dapla-toolbelt"
version = "2.0.15"
version = "2.0.16"
description = "Dapla Toolbelt"
authors = ["Dapla Developers <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/dapla/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_versions(bucket_name: str, file_name: str) -> Any:
storage_client = storage.Client()
bucket = storage_client.bucket(bucket_name)

return bucket.list_blobs(prefix=file_name, versions=True)
return list(bucket.list_blobs(prefix=file_name, versions=True))

@staticmethod
def restore_version(
Expand Down

0 comments on commit 0363609

Please sign in to comment.