mirror of https://github.com/morpheus65535/bazarr
no log: fixed unused imports and indent issues
This commit is contained in:
parent
f760d3198b
commit
5fab67bca0
|
@ -9,7 +9,6 @@ import pretty
|
||||||
import time
|
import time
|
||||||
import socket
|
import socket
|
||||||
import requests
|
import requests
|
||||||
import tzlocal
|
|
||||||
|
|
||||||
from subliminal_patch.exceptions import TooManyRequests, APIThrottled, ParseResponseError, IPAddressBlocked, \
|
from subliminal_patch.exceptions import TooManyRequests, APIThrottled, ParseResponseError, IPAddressBlocked, \
|
||||||
MustGetBlacklisted, SearchLimitReached
|
MustGetBlacklisted, SearchLimitReached
|
||||||
|
|
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import requests
|
import requests
|
||||||
import mimetypes
|
|
||||||
|
|
||||||
from flask import request, redirect, abort, render_template, Response, session, send_file, stream_with_context, \
|
from flask import request, abort, render_template, Response, session, send_file, stream_with_context, Blueprint
|
||||||
send_from_directory, Blueprint
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from urllib.parse import unquote
|
from urllib.parse import unquote
|
||||||
|
|
||||||
|
@ -26,8 +24,8 @@ ui_bp = Blueprint('ui', __name__,
|
||||||
static_url_path='/assets')
|
static_url_path='/assets')
|
||||||
|
|
||||||
static_bp = Blueprint('images', __name__,
|
static_bp = Blueprint('images', __name__,
|
||||||
static_folder=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'frontend',
|
static_folder=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))),
|
||||||
'build', 'images'), static_url_path='/images')
|
'frontend', 'build', 'images'), static_url_path='/images')
|
||||||
|
|
||||||
ui_bp.register_blueprint(static_bp)
|
ui_bp.register_blueprint(static_bp)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue