From 6fd956ede3d988e68c6aeafd380b09225b2a35b4 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Wed, 2 Oct 2024 15:23:26 +0200 Subject: [PATCH] adapt test --- .../scripts/bfabric_list_not_existing_storage_directories.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bfabric/scripts/bfabric_list_not_existing_storage_directories.py b/src/bfabric/scripts/bfabric_list_not_existing_storage_directories.py index 53179c3f..65d23d2f 100755 --- a/src/bfabric/scripts/bfabric_list_not_existing_storage_directories.py +++ b/src/bfabric/scripts/bfabric_list_not_existing_storage_directories.py @@ -67,7 +67,10 @@ def update(self, client: Bfabric) -> None: max_results = 300 if "BFABRICPY_DEBUG" in os.environ else None logger.debug(f"Checking for new container ids since {timestamp} with limit {max_results}") result = client.read( - "container", {**self._data.query, "createdafter": timestamp}, return_id_only=True, max_results=max_results + endpoint="container", + obj={**self._data.query, "createdafter": timestamp}, + return_id_only=True, + max_results=max_results, ) if len(result): ids = result.to_polars()["id"].unique().to_list()