From c2b076f9ceac50565d72055bfa380853914ff259 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 8 Aug 2015 19:32:24 -0400 Subject: [PATCH] add cover image support (code was in main.html before, but I messed up committing things) --- test.py | 1 + 1 file changed, 1 insertion(+) 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 ""