Skip to content

Commit

Permalink
fix typecasting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans-Chrstian committed Nov 21, 2024
1 parent 56faa3c commit cf34e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/fairdatapoint/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cf34e1a

Please sign in to comment.