Skip to content

Commit 504394f

Browse files
committed
Merge branch 'main' of github.com:thingsdb/python-thingsdb into main
2 parents 5d69d72 + 162c791 commit 504394f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/bookstore/webserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def on_join(self):
5050
""")
5151

5252
@event('add-book')
53-
def on_add_boook(self, book):
53+
def on_add_book(self, book):
5454
self.books.append(book)
5555

5656

@@ -66,7 +66,7 @@ async def add_book(request):
6666
return web.HTTPNoContent()
6767

6868

69-
# We hve the books in memory
69+
# We have the books in memory, no need for a query
7070
async def get_books(request):
7171
return web.json_response({
7272
"book_titles": [book['title'] for book in bookstore.books]

0 commit comments

Comments
 (0)