mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
835e1cf482
commit
ef10150149
@ -209,8 +209,7 @@ def ACQUISITION_ENTRY(book_id, updated, request_context):
|
|||||||
xml(format_tag_string(val,
|
xml(format_tag_string(val,
|
||||||
fm['is_multiple']['ui_to_list'],
|
fm['is_multiple']['ui_to_list'],
|
||||||
joinval=fm['is_multiple']['list_to_ui']))))
|
joinval=fm['is_multiple']['list_to_ui']))))
|
||||||
elif datatype == 'comments' or (fm['datatype'] == 'composite' and
|
elif datatype == 'comments' or (fm['datatype'] == 'composite' and fm['display'].get('contains_html', False)):
|
||||||
fm['display'].get('contains_html', False)):
|
|
||||||
extra.append('%s: %s<br />'%(xml(name), comments_to_html(unicode(val))))
|
extra.append('%s: %s<br />'%(xml(name), comments_to_html(unicode(val))))
|
||||||
else:
|
else:
|
||||||
extra.append('%s: %s<br />'%(xml(name), xml(unicode(val))))
|
extra.append('%s: %s<br />'%(xml(name), xml(unicode(val))))
|
||||||
@ -551,8 +550,7 @@ def opds_category(ctx, rd, category, which):
|
|||||||
which = int(which[:p])
|
which = int(which[:p])
|
||||||
except Exception:
|
except Exception:
|
||||||
# Might be a composite column, where we have the lookup key
|
# Might be a composite column, where we have the lookup key
|
||||||
if not (category in rc.db.field_metadata and
|
if not (category in rc.db.field_metadata and rc.db.field_metadata[category]['datatype'] == 'composite'):
|
||||||
rc.db.field_metadata[category]['datatype'] == 'composite'):
|
|
||||||
raise HTTPNotFound('Tag %r not found'%which)
|
raise HTTPNotFound('Tag %r not found'%which)
|
||||||
|
|
||||||
categories = rc.get_categories()
|
categories = rc.get_categories()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user