Skip to content

Commit

Permalink
stringifying list elements before pasting
Browse files Browse the repository at this point in the history
  • Loading branch information
turbomam committed Sep 29, 2023
1 parent ef00df7 commit 7163177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schemasheets/schema_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,12 @@ def repl(v: Any) -> Optional[str]:
# representation
if isinstance(v, list):
v = [repl(v1) for v1 in v if repl(v1) is not None]
v = '|'.join(v)
v = '|'.join([str(i) for i in v])
if v != '':
exported_row[col_name] = v
elif isinstance(v, dict):
v = [repl(v1) for v1 in v.values() if repl(v1) is not None]
v = '|'.join(v)
v = '|'.join([str(i) for i in v])
if v != '':
exported_row[col_name] = v
else:
Expand Down

0 comments on commit 7163177

Please sign in to comment.