We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0888d1 + 8e09bd7 commit 682d8c6Copy full SHA for 682d8c6
1 file changed
pipelines/assets/livelihood_activity.py
@@ -902,6 +902,10 @@ def get_instances_from_dataframe(
902
if (
903
livelihood_strategy["strategy_type"] == "ButterProduction"
904
and "percentage_kcals" in livelihood_strategy["attribute_rows"]
905
+ and any(
906
+ livelihood_activity.get("percentage_kcals")
907
+ for livelihood_activity in livelihood_activities_for_strategy
908
+ )
909
):
910
# Find the MilkProduction livelihood strategy
911
milk_strategy = None
0 commit comments