Skip to content

Commit 6965c23

Browse files
committed
Fix KGClient.clean_space() method
1 parent 343b4a8 commit 6965c23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fairgraph/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,8 @@ def clean_space(self, space_name):
784784
for cls, count in space_info.items():
785785
if count > 0 and hasattr(cls, "list"): # exclude embedded metadata instances
786786
print(f"Deleting {cls.__name__} instances", end=" ")
787-
response = self.list(cls.type_, release_status="in progress", space=space_name)
788-
assert response.size <= count
787+
response = self.list(cls.type_, release_status="in progress", space=space_name, size=count)
788+
assert response.total <= count
789789
for instance in response.data:
790790
assert instance["https://core.kg.ebrains.eu/vocab/meta/space"] == space_name
791791
error = self.delete_instance(self.uuid_from_uri(instance["@id"]), ignore_not_found=False)

0 commit comments

Comments
 (0)