Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 8e4fec7

Browse files
author
Alex Chirayath
committed
Revert "replaced add() call on list to append() (#154)"
This reverts commit 7465111.
1 parent 7465111 commit 8e4fec7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/lambda/jobresultprocessor/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def processRequest(request):
153153
if key not in comprehendAndMedicalEntities:
154154
comprehendAndMedicalEntities[key] = val
155155
else:
156-
comprehendAndMedicalEntities[key].append(val)
156+
comprehendAndMedicalEntities[key].add(val)
157157
opg.indexDocument(opg_output[DOCTEXT], comprehendAndMedicalEntities)
158158

159159
ds = datastore.DocumentStore(documentsTable, outputTable)

source/lambda/syncprocessor/lambda_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def processImage(documentId, features, bucketName, outputBucketName, objectName,
128128
if key not in comprehendAndMedicalEntities:
129129
comprehendAndMedicalEntities[key] = val
130130
else:
131-
comprehendAndMedicalEntities[key].append(val)
131+
comprehendAndMedicalEntities[key].add(val)
132132
opg.indexDocument(opg_output[DOCTEXT], comprehendAndMedicalEntities)
133133

134134
ds = datastore.DocumentStore(documentsTableName, outputTableName)

0 commit comments

Comments
 (0)