We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4a0546 commit 84914a3Copy full SHA for 84914a3
ayugespidertools/common/mongodbpipe.py
@@ -79,7 +79,7 @@ def store(
79
update_doc["$setOnInsert"] = ReuseOperation.get_items_except_keys(
80
data=insert_data, keys=set_data
81
)
82
- db[collection].find_one_and_update(
+ db[collection].update_one(
83
filter=update_rule, update=update_doc, upsert=True
84
85
else:
@@ -109,7 +109,7 @@ async def store(
109
110
111
112
- await db[collection].find_one_and_update(
+ await db[collection].update_one(
113
114
115
0 commit comments