Skip to content

Commit bd6e797

Browse files
committed
Remove redundant code from LivelihoodActivity get_instances_from_dataframe - see HEA-887
1 parent d87f5b2 commit bd6e797

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pipelines/assets/livelihood_activity.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,7 @@ def get_instances_from_dataframe(
961961
and (livelihood_activity[field] or livelihood_activity[field] == 0)
962962
for livelihood_activity in livelihood_activities_for_strategy
963963
):
964-
for field in ["percentage_kcals", "kcals_consumed"]:
965-
del livelihood_strategy["attribute_rows"][field]
964+
del livelihood_strategy["attribute_rows"][field]
966965

967966
# Add the `times_per_year` to FoodPurchase, PaymentInKind and OtherCashIncome,
968967
# because it is not in the current BSSs

0 commit comments

Comments
 (0)