Skip to content

Commit e80dbd1

Browse files
Fix data format issue
1 parent f6ee0e0 commit e80dbd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/country_workspace/contrib/aurora/pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def create_household(
8686
flex_fields = _collect_by_prefix(data, prefix)
8787
if len(flex_fields) > 1:
8888
raise ValueError("Multiple households found")
89+
flex_fields = next(iter(flex_fields.values()), {})
8990
return batch.program.households.create(batch=batch, flex_fields=preprocess_record(flex_fields))
9091

9192

0 commit comments

Comments
 (0)