Skip to content

Commit

Permalink
Wrap individual elements in quotes, as the CSV does
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceStevenWilley committed Jun 4, 2022
1 parent 726270d commit 4591e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docassemble/tclpgoogledocsmerger/airtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_airtable_or_cache(airtable_info:Mapping[str, str], redis_cache=None) ->
t = Table(airtable_key, airtable_base, table_name)
name_map = {r["id"]: r["fields"].get("Name") for r in t.all()}
for row in just_rows:
row[col] = ','.join([name_map.get(val, '') for val in row.get(col, [])])
row[col] = ','.join(['"' + name_map.get(val, '') + '"' for val in row.get(col, [])])
except requests.exceptions.HTTPError as ex:
log(f'HTTPError when retrieving airtable: {ex}')
return None
Expand Down

0 comments on commit 4591e91

Please sign in to comment.