add cover image support
(code was in main.html before, but I messed up committing things)
This commit is contained in:
parent
d560380166
commit
c2b076f9ce
1
test.py
1
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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user