From cf34e1a20bceb41d63837cf76854aca0769644d1 Mon Sep 17 00:00:00 2001 From: Hans-Chrstian Date: Thu, 21 Nov 2024 15:15:32 +0100 Subject: [PATCH] fix typecasting --- ckanext/fairdatapoint/labels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/fairdatapoint/labels.py b/ckanext/fairdatapoint/labels.py index 9e8e80f..c3e0961 100644 --- a/ckanext/fairdatapoint/labels.py +++ b/ckanext/fairdatapoint/labels.py @@ -69,7 +69,7 @@ def resolve_labels(package_dict: dict) -> int: if "success" not in updated_labels: log.warning("Error updating labels: %s", updated_labels) - if updated_labels["success"].isinteger(): + if updated_labels["success"].IsNumeric(): if not (len(translation_list) == int(updated_labels["success"])): log.warning( "Of %d labels, only %s updated successfully",