From 041adf47acc21eb36a3507dc2eb19f77cfc08b56 Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Mon, 13 Jun 2016 14:35:24 +0200 Subject: [PATCH] Fixed lines which are mor than 79 characters --- beetsplug/web/__init__.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index fefa4ce5f..e485bc84d 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -86,7 +86,9 @@ def resource(name): entities = [entity for entity in entities if entity] if len(entities) == 1: - return flask.jsonify(_rep(entities[0], expand=is_expand(flask.request.args))) + return flask.jsonify( + _rep(entities[0], expand=is_expand(flask.request.args)) + ) elif entities: return app.response_class( json_generator(entities, root=name), @@ -105,7 +107,10 @@ def resource_query(name): def make_responder(query_func): def responder(queries): return app.response_class( - json_generator(query_func(queries), root='results', expand=is_expand(flask.request.args)), + json_generator( + query_func(queries), + root='results', expand=is_expand(flask.request.args) + ), mimetype='application/json' ) responder.__name__ = 'query_{0}'.format(name) @@ -120,7 +125,8 @@ def resource_list(name): def make_responder(list_all): def responder(): return app.response_class( - json_generator(list_all(), root=name, expand=is_expand(flask.request.args)), + json_generator(list_all(), root=name, + expand=is_expand(flask.request.args)), mimetype='application/json' ) responder.__name__ = 'all_{0}'.format(name)