This commit is contained in:
Kovid Goyal 2009-07-15 15:20:00 -06:00
parent d7c94246d7
commit 20bf4092c7
3 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ def check_for_masthead(self):
except ImportError:
import Image as PILImage
raw = StringIO(server_resources['calibre.png'])
raw = StringIO(server_resources['calibre_banner.png'])
im = PILImage.open(raw)
of = StringIO()
im.save(of, 'GIF')

View file

@ -1374,7 +1374,7 @@ def create_book_entry(self, mi, cover=None, add_duplicates=True):
self.set_path(id, True)
self.conn.commit()
self.set_metadata(id, mi)
if cover:
if cover is not None:
self.set_cover(id, cover)
return id

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB