Xmlparser module: getNodes is now a generator
This commit is contained in:
parent
ada19a221c
commit
ce9dec7ed4
2 changed files with 2 additions and 6 deletions
|
@ -66,8 +66,7 @@ def cmd_books(msg):
|
|||
res = Response(channel=msg.channel,
|
||||
title="%s" % (title), count=" (%d more books)")
|
||||
|
||||
books = search_books(title)
|
||||
for book in books:
|
||||
for book in search_books(title):
|
||||
res.append_message("%s, writed by %s" % (book.getNode("best_book").getNode("title").getContent(), book.getNode("best_book").getNode("author").getNode("name").getContent()))
|
||||
return res
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue