From ef101501495bc4d08d390a633b9d2eb51d3678e4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Jul 2018 09:52:34 +0530 Subject: [PATCH] pep8 --- src/calibre/srv/opds.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/calibre/srv/opds.py b/src/calibre/srv/opds.py index cb3faf9d9b..903a1fd54b 100644 --- a/src/calibre/srv/opds.py +++ b/src/calibre/srv/opds.py @@ -209,8 +209,7 @@ def ACQUISITION_ENTRY(book_id, updated, request_context): xml(format_tag_string(val, fm['is_multiple']['ui_to_list'], joinval=fm['is_multiple']['list_to_ui'])))) - elif datatype == 'comments' or (fm['datatype'] == 'composite' and - fm['display'].get('contains_html', False)): + elif datatype == 'comments' or (fm['datatype'] == 'composite' and fm['display'].get('contains_html', False)): extra.append('%s: %s
'%(xml(name), comments_to_html(unicode(val)))) else: extra.append('%s: %s
'%(xml(name), xml(unicode(val)))) @@ -551,8 +550,7 @@ def opds_category(ctx, rd, category, which): which = int(which[:p]) except Exception: # Might be a composite column, where we have the lookup key - if not (category in rc.db.field_metadata and - rc.db.field_metadata[category]['datatype'] == 'composite'): + if not (category in rc.db.field_metadata and rc.db.field_metadata[category]['datatype'] == 'composite'): raise HTTPNotFound('Tag %r not found'%which) categories = rc.get_categories()