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

Commit 0387e1d

Browse files
Luke MoehlenbrockLuke Moehlenbrock
Luke Moehlenbrock
authored and
Luke Moehlenbrock
committed
Updated uploader.py
1 parent 997a786 commit 0387e1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

labelpandas/uploader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ def create_upload(row_dict:dict, row_data_col:str, global_key_col:str, external_
224224
if create_action or batch_action:
225225
data_row["row_data"] = row_dict[row_data_col]
226226
data_row["global_key"] = row_dict[global_key_col]
227-
data_row["external_id"] = row_dict[external_id_col]
227+
if external_id_col in row_dict.keys():
228+
data_row["external_id"] = row_dict[external_id_col]
228229
# Create a list of metadata for a data row
229230
metadata_fields = [{"schema_id" : metadata_name_key_to_schema['lb_integration_source'], "value" : "LabelPandas"}]
230231
if metadata_index:

0 commit comments

Comments
 (0)