This commit is contained in:
Kovid Goyal 2018-04-21 18:04:33 +05:30
parent d0ea6b31c4
commit 24ece3b623
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -108,11 +108,11 @@ def upgrade_date(root, data):
if not val:
remove_element(date, data.refines)
continue
if not found:
found = True
continue
if not val or found: # only one dc:date allowed
if found:
# only one dc:date allowed
remove_element(date, data.refines)
else:
found = True
def upgrade_rating(root, data):