Skip to content

Commit 8654fbe

Browse files
committed
bump.
1 parent 8fbe354 commit 8654fbe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ingestor-test-s3:
5454

5555
.PHONY: apiv2-test
5656
apiv2-test: ## Run apiv2 tests
57-
$(docker_compose) exec graphql-api pytest -vvv
57+
$(docker_compose) exec graphql-api pytest -vvv -s db_import/tests/test_db_dataset_import.py::test_import_dataset_new
5858

5959
.PHONY: push-local-ingestor-build
6060
push-local-ingestor-build:

Diff for: apiv2/db_import/importers/base_importer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ def get_file_size(self, *input_path: tuple[str]) -> str:
8686

8787
total_size = 0
8888
try:
89-
paginator = self.config.s3_client.get_paginator('list_objects_v2')
89+
paginator = self.config.s3_client.get_paginator("list_objects_v2")
9090
pages = paginator.paginate(Bucket=self.config.bucket_name, Prefix=input_path)
9191
for page in pages:
9292
if "Contents" in page:
9393
for obj in page["Contents"]:
94+
print(f"{obj['Key']} - {obj['Size']} - {total_size}")
9495
total_size += obj["Size"]
9596

96-
9797
return total_size
9898
except Exception as e:
9999
print(f"Error retrieving folder size: {e}")

0 commit comments

Comments
 (0)