diff --git a/pyQuARC/code/custom_validator.py b/pyQuARC/code/custom_validator.py index 27cbebad..bf3620d1 100644 --- a/pyQuARC/code/custom_validator.py +++ b/pyQuARC/code/custom_validator.py @@ -92,13 +92,13 @@ def one_item_presence_check(*field_values): value = None for field_value in field_values: - if field_value: + if field_value is not None: value = field_value validity = True break return {"valid": validity, "value": value} - + @staticmethod def dif_standard_product_check(*field_values): """ @@ -130,7 +130,7 @@ def license_url_description_check(description_field, url_field, license_text): description_field (string): string describing the URL """ validity = True - value = description_field + value = description_field if not license_text and not url_field: validity = False