diff --git a/lib360dataquality/check_field_present.py b/lib360dataquality/check_field_present.py index ab93dd1..b03cf02 100644 --- a/lib360dataquality/check_field_present.py +++ b/lib360dataquality/check_field_present.py @@ -108,7 +108,7 @@ class PlannedDurationNotPresent(FieldNotPresentBase): @exception_to_false def check_field(self, grant): - return (grant["plannedDates"][0].get("duration") or (grant["plannedDates"][0].get("startDate") and grant["plannedDates"][0].get("endDate"))) + return (grant["plannedDates"][0].get("duration") is not None or (grant["plannedDates"][0].get("startDate") and grant["plannedDates"][0].get("endDate"))) def process(self, grant, path_prefix): super().process(grant, path_prefix)