We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e8206c + 39751bc commit c6cb19aCopy full SHA for c6cb19a
pipelines/assets/livelihood_activity.py
@@ -612,7 +612,9 @@ def get_instances_from_dataframe(
612
) or livelihood_activity.get("people_per_household", None)
613
livelihood_activity["times_per_year"] = (
614
round(livelihood_activity["kcals_consumed"] / kcals_per_unit / number_of_units)
615
- if number_of_units and kcals_per_unit
+ if number_of_units
616
+ and kcals_per_unit
617
+ and livelihood_activity["kcals_consumed"] is not None
618
else 0
619
)
620
0 commit comments