mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in Manifest __contains__() method.
This commit is contained in:
parent
d46abf8c50
commit
a52c0b5c21
@ -312,7 +312,7 @@ class Manifest(object):
|
||||
yield id, item
|
||||
|
||||
def __contains__(self, key):
|
||||
return id in self.ids
|
||||
return key in self.ids
|
||||
|
||||
def to_opf1(self, parent=None):
|
||||
elem = element(parent, 'manifest')
|
||||
|
Loading…
x
Reference in New Issue
Block a user