black reformatting
This commit is contained in:
parent
5a8e5e5a40
commit
bf1d04e399
@ -466,9 +466,7 @@ class Document(BaseDocument, metaclass=TopLevelDocumentMetaclass):
|
|||||||
if "_id" in doc:
|
if "_id" in doc:
|
||||||
select_dict = {"_id": doc["_id"]}
|
select_dict = {"_id": doc["_id"]}
|
||||||
select_dict = self._integrate_shard_key(doc, select_dict)
|
select_dict = self._integrate_shard_key(doc, select_dict)
|
||||||
raw_object = wc_collection.find_one_and_replace(
|
raw_object = wc_collection.find_one_and_replace(select_dict, doc)
|
||||||
select_dict, doc
|
|
||||||
)
|
|
||||||
if raw_object:
|
if raw_object:
|
||||||
return doc["_id"]
|
return doc["_id"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user