add cover image support

(code was in main.html before, but I messed up committing things)
This commit is contained in:
Adam Goldsmith 2015-08-08 19:32:24 -04:00
parent d560380166
commit c2b076f9ce
1 changed files with 1 additions and 0 deletions

View File

@ -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 ""