Skip to content

Commit b6474bb

Browse files
committed
Address PR feedback see HEA677
1 parent b789019 commit b6474bb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pipelines/assets/fixtures.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,12 @@ def consolidated_fixture(
339339
if model_name != "WealthGroup"
340340
},
341341
}
342-
# Add the keys: `Fishing` and `WildFoodGathering`
343-
consolidated_instances["Fishing"] = []
344-
consolidated_instances["WildFoodGathering"] = []
345342

346343
# Add the wild foods and other cash income instances, if they are present
347344
for model_name, instances in {**other_cash_income_valid_instances, **wild_foods_valid_instances}.items():
348345
if instances and model_name != "WealthGroup":
346+
if model_name not in consolidated_instances:
347+
consolidated_instances[model_name] = []
349348
consolidated_instances[model_name] += instances
350349

351350
fixture, metadata = get_fixture_from_instances(consolidated_instances)

0 commit comments

Comments
 (0)