mirror of
https://github.com/beetbox/beets.git
synced 2025-12-22 00:23:33 +01:00
fixed failing test - line too long
This commit is contained in:
parent
bc8a8ecf5f
commit
cafbb2438e
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue