Skip to content

Commit 90927ef

Browse files
committed
format
1 parent 7036983 commit 90927ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ingestr/src/mongodb/helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,9 @@ def destination(items: TDataItem, table: TTableSchema) -> None:
10381038
if primary_keys:
10391039
operations = []
10401040
for doc in documents:
1041-
filter_dict = {key: doc[key] for key in primary_keys if key in doc}
1041+
filter_dict = {
1042+
key: doc[key] for key in primary_keys if key in doc
1043+
}
10421044
if filter_dict:
10431045
operations.append(ReplaceOne(filter_dict, doc, upsert=True))
10441046

0 commit comments

Comments
 (0)