Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard product check #285

Merged
merged 9 commits into from
May 13, 2024
6 changes: 3 additions & 3 deletions pyQuARC/code/custom_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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
Expand Down
Loading