Skip to content

Commit

Permalink
airtable de-list-ify for lists
Browse files Browse the repository at this point in the history
  • Loading branch information
floptical committed Feb 7, 2024
1 parent b21c6b7 commit b9774d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion databridge_etl_tools/airtable/airtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ def get_records(self):

def process_row(self, row: Dict) -> Dict:
for key, value in row.items():
# De-list-ify list into a comma separated string.
# Not sure why prior author did a json dumps. -Roland
if isinstance(value, list):
row[key] = json.dumps(value)
#row[key] = json.dumps(value)
row[key] = ','.join([str(x) for x in value])

return row

Expand Down

0 comments on commit b9774d4

Please sign in to comment.