diff --git a/test.py b/test.py index fde6fe9..4d9161f 100644 --- a/test.py +++ b/test.py @@ -20,6 +20,7 @@ def updateData(): for book in collection.iter(ns + "entry"): bookout = {} + bookout["image"] = book.find(ns + "cover").text if book.find(ns + "cover") != None else "" bookout["id"] = int(book.find(ns + "id").text) bookout["title"] = book.find(ns + "title").text if (book.find(ns + "title") != None) else "" bookout["isbn"] = book.find(ns + "isbn").text if (book.find(ns + "isbn") != None) else ""