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

Commit ee96db2

Browse files
Update connector.py
1 parent 719cbf9 commit ee96db2

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
@@ -65,7 +65,8 @@ def create_data_rows(lb_client:Client, base_client:baseClient, row:pandas.core.s
6565
Returns:
6666
Two items - the global_key, and a dictionary with "row_data", "global_key", "external_id" and "metadata_fields" keys
6767
"""
68-
row_data = base_client.upload_local_file(file_path=str(row[row_data_col])) if local_files else str(row[row_data_col])
68+
row_data = lb_client.upload_file(str(row[row_data_col])) if local_files else str(row[row_data_col])
69+
# row_data = base_client.upload_local_file(file_path=str(row[row_data_col])) if local_files else str(row[row_data_col])
6970
metadata_fields = [{"schema_id" : metadata_name_key_to_schema['lb_integration_source'], "value" : "Pandas"}]
7071
if metadata_index:
7172
for metadata_field_name in metadata_index.keys():

0 commit comments

Comments
 (0)