fixed failing test - line too long

This commit is contained in:
robot3498712 2017-06-15 13:27:28 +02:00
parent bc8a8ecf5f
commit cafbb2438e

View file

@ -217,7 +217,8 @@ def all_items():
@app.route('/item/<int:item_id>/file')
def item_file(item_id):
item = g.lib.get_item(item_id)
item_path = util.syspath(item.path) if os.name == 'nt' else util.py3_path(item.path)
item_path = util.syspath(item.path) if (os.name == 'nt') else (
util.py3_path(item.path))
response = flask.send_file(
item_path,
as_attachment=True,