Skip to content

Commit

Permalink
Merge pull request #285 from NASA-IMPACT/standard-product-check
Browse files Browse the repository at this point in the history
Standard product check
  • Loading branch information
slesaad authored May 13, 2024
2 parents a0fbe59 + f2287ea commit ec915ef
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit ec915ef

Please sign in to comment.