Skip to content

Commit 69b3770

Browse files
committed
Fix
1 parent d2fd6c1 commit 69b3770

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/serialization.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ it back into a ``Restaurant`` object from the preceding example. Select the
117117

118118
def deserialize_restaurant(doc):
119119
return Restaurant(name=doc["name"], cuisine=doc["cuisine"])
120+
121+
restaurant_doc = collection.find_one({"name": "Example Cafe"})
122+
restaurant = deserialize_restaurant(restaurant_doc)
120123

121124
.. tab:: Asynchronous
122125
:tabid: async

0 commit comments

Comments
 (0)