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.
2 parents 5d69d72 + 162c791 commit 504394fCopy full SHA for 504394f
examples/bookstore/webserver.py
@@ -50,7 +50,7 @@ async def on_join(self):
50
""")
51
52
@event('add-book')
53
- def on_add_boook(self, book):
+ def on_add_book(self, book):
54
self.books.append(book)
55
56
@@ -66,7 +66,7 @@ async def add_book(request):
66
return web.HTTPNoContent()
67
68
69
-# We hve the books in memory
+# We have the books in memory, no need for a query
70
async def get_books(request):
71
return web.json_response({
72
"book_titles": [book['title'] for book in bookstore.books]
0 commit comments