X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/ef1261dbe0b30a1ab9f39831b7c167918913338a..00906f2fc0432cede204c7870e6caecf427d7024:/librarian/picture.py diff --git a/librarian/picture.py b/librarian/picture.py index edf541f..0f5c99a 100644 --- a/librarian/picture.py +++ b/librarian/picture.py @@ -176,6 +176,6 @@ class WLPicture(object): if parent.tag == 'sem': if parent.get('type') == 'theme': pd['themes'] += map(unicode.strip, unicode(parent.get('theme')).split(',')) - elif parent.get('type') == 'object' and not pd['object']: - pd['object'] = parent.get('name') + elif parent.get('type') == 'object' and pd['object'] is None: + pd['object'] = parent.get('object') yield pd