Skip to content

Commit

Permalink
fix: csv parsing for test
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Aug 31, 2023
1 parent 468b791 commit cd66866
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osm_fieldwork/CSVDump.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,11 @@ def parse(self,
else:
self.saved[base] = value
log.debug(f"Updating last saved value for \"{base}\" with \"{value}\"")
# Handle nested dict in list
if isinstance(items, list):
items = items[0]
for k, v in items.items():
tags[k] = v
tags[k] = v
else:
tags[base] = value
# log.debug(f"\tFIXME1: {tags}")
Expand Down

0 comments on commit cd66866

Please sign in to comment.