Skip to content

Commit ec242cd

Browse files
committed
Continue updating for PyMongo API changes
1 parent d034d1d commit ec242cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

2-structured-data/bookshelf/model_mongodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def list(limit=10, cursor=None):
6363

6464
# [START read]
6565
def read(id):
66-
result = mongo.db.books.find_one(_id(id))
66+
result = mongo.db.books.find_one({'_id': _id(id)})
6767
return from_mongo(result)
6868
# [END read]
6969

0 commit comments

Comments
 (0)