Skip to content

Commit

Permalink
Merge pull request #1519 from mabel-dev/#1517
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer authored Mar 14, 2024
2 parents 05ed3f5 + 9efeb47 commit 6ef4748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opteryx/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__build__ = 358
__build__ = 360

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
5 changes: 3 additions & 2 deletions opteryx/connectors/gcp_cloudstorage_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ def read_blob(self, *, blob_name, **kwargs):
@single_item_cache
def get_list_of_blob_names(self, *, prefix: str) -> List[str]:
bucket, object_path, _, _ = paths.get_parts(prefix)
bucket = bucket.replace("va_data", "va-data")
bucket = bucket.replace("data_", "data-")
if "kh" not in bucket:
bucket = bucket.replace("va_data", "va-data")
bucket = bucket.replace("data_", "data-")

# DEBUG: log (f"[GCS] bucket: '{bucket}', path: '{object_path}'")

Expand Down

0 comments on commit 6ef4748

Please sign in to comment.