Merge pull request #2659 from clarksun/patch-1

[MRG+1] Update item-pipeline.rst
This commit is contained in:
Mikhail Korobov 2017-05-10 14:55:03 +05:00 committed by GitHub
commit 8b9b642952
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ method and how to clean up the resources properly.::
self.client.close()
def process_item(self, item, spider):
self.db[self.collection_name].insert(dict(item))
self.db[self.collection_name].insert_one(dict(item))
return item
.. _MongoDB: https://www.mongodb.org/