Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 784a877

Browse files
Update connector.py
1 parent e59094b commit 784a877

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

labelpandas/connector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def create_data_rows(lb_client:Client, base_client:baseClient, row:pandas.core.s
6363
Returns:
6464
Two items - the global_key, and a dictionary with "row_data", "global_key", "external_id" and "metadata_fields" keys
6565
"""
66-
row_data = str(row[row_data_col]) if not local_files else base_client.connector.upload_local_file(lb_client=lb_client, file_path=str(row[row_data_col]))
66+
row_data_str = str(row[row_data_col])
67+
row_data = base_client.connector.upload_local_file(lb_client=lb_client, file_path=row_data_str) if local_files else row_data_str
6768
metadata_fields = [{"schema_id" : metadata_name_key_to_schema['lb_integration_source'], "value" : "Pandas"}]
6869
if metadata_index:
6970
for metadata_field_name in metadata_index.keys():

0 commit comments

Comments
 (0)