diff --git a/arkindex_worker/worker/metadata.py b/arkindex_worker/worker/metadata.py index 04fc4c854174818ed70b169b6d640248a6c7e004..665b505dab46e5d87d01d3ffca26c2095a2a1459 100644 --- a/arkindex_worker/worker/metadata.py +++ b/arkindex_worker/worker/metadata.py @@ -152,10 +152,9 @@ class MetaDataMixin(object): metadata.get("name"), str ), "name shouldn't be null and should be of type str" - value = metadata.get("value") - assert value is not None and isinstance( - value, (str, float, int) and 0 <= value <= 1 - ), "value shouldn't be null and should be of type (str or float or int) in [0..1] range" + assert metadata.get("value") is not None and isinstance( + metadata.get("value"), (str, float, int) + ), "value shouldn't be null and should be of type (str or float or int)" assert metadata.get("entity_id") is None or isinstance( metadata.get("entity_id"), str