Skip to content

Commit b080859

Browse files
authored
O(N) to O(1), checking membership in a list vs a dict (#625)
1 parent 5fb8892 commit b080859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/create_test_subset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def transfer_participants(
589589

590590
participants_to_transfer = []
591591
for participant in participant_data:
592-
if participant['externalId'] in list(target_project_pid_map.keys()):
592+
if participant['externalId'] in target_project_pid_map:
593593
# Participants with id field will be updated & those without will be inserted
594594
participant['id'] = target_project_pid_map[participant['externalId']]
595595
else:

0 commit comments

Comments
 (0)