mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Fixes for flake8 validation
This commit is contained in:
parent
bd63e1e386
commit
c8880de52c
2 changed files with 5 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ from crossdomaindec import crossdomain, set_cors_origin
|
|||
|
||||
# Utilities.
|
||||
|
||||
|
||||
def _rep(obj, expand=False):
|
||||
"""Get a flat -- i.e., JSON-ish -- representation of a beets Item or
|
||||
Album object. For Albums, `expand` dictates whether tracks are
|
||||
|
|
|
|||
|
|
@ -21,15 +21,18 @@ from datetime import timedelta
|
|||
from flask import make_response, request, current_app
|
||||
from functools import update_wrapper
|
||||
|
||||
cors_origin = 'http://127.0.0.1'
|
||||
cors_origin = 'http://127.0.0.1'
|
||||
|
||||
|
||||
def set_cors_origin(origin):
|
||||
global cors_origin
|
||||
cors_origin = origin
|
||||
|
||||
|
||||
def get_cors_origin():
|
||||
return cors_origin
|
||||
|
||||
|
||||
def crossdomain(methods=None, headers=None,
|
||||
max_age=21600, attach_to_all=True,
|
||||
automatic_options=True):
|
||||
|
|
|
|||
Loading…
Reference in a new issue