Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,12 @@ def _get_values_from_column(self, values, columns, column_name):
content_l.append(values[index])
if all(isinstance(content, str) for content in content_l):
return " ".join(content_l)
return content_l[0]
elif any(isinstance(content, int) for content in content_l):
# Convert all content to string and join when we have integers
Comment thread
cav-adhoc marked this conversation as resolved.
return " ".join(str(content) for content in content_l)
Comment thread
cav-adhoc marked this conversation as resolved.
else:
# Fallback to first content for other mixed types
return content_l[0]

def _parse_rows(self, mapping, currency_code, data, columns): # noqa: C901
csv_or_xlsx, data_file = data
Expand Down