mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 17:13:35 +08:00
no log: pep8 fixes
This commit is contained in:
parent
9c1397a14d
commit
33ff7948e8
3 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ class SystemStatus(Resource):
|
||||||
@authenticate
|
@authenticate
|
||||||
def get(self):
|
def get(self):
|
||||||
package_version = ''
|
package_version = ''
|
||||||
if 'BAZARR_PACKAGE_VERSION' in os.environ:
|
if 'BAZARR_PACKAGE_VERSION' in os.environ:
|
||||||
package_version = os.environ['BAZARR_PACKAGE_VERSION']
|
package_version = os.environ['BAZARR_PACKAGE_VERSION']
|
||||||
if 'BAZARR_PACKAGE_AUTHOR' in os.environ and os.environ['BAZARR_PACKAGE_AUTHOR'] != '':
|
if 'BAZARR_PACKAGE_AUTHOR' in os.environ and os.environ['BAZARR_PACKAGE_AUTHOR'] != '':
|
||||||
package_version = f'{package_version} by {os.environ["BAZARR_PACKAGE_AUTHOR"]}'
|
package_version = f'{package_version} by {os.environ["BAZARR_PACKAGE_AUTHOR"]}'
|
||||||
|
|
|
@ -74,7 +74,7 @@ def backup_to_zip():
|
||||||
if database_backup_file:
|
if database_backup_file:
|
||||||
backupZip.write(database_backup_file, 'bazarr.db')
|
backupZip.write(database_backup_file, 'bazarr.db')
|
||||||
else:
|
else:
|
||||||
logging.debug(f'Database file is not included in backup. See previous exception')
|
logging.debug('Database file is not included in backup. See previous exception')
|
||||||
backupZip.write(config_file, 'config.ini')
|
backupZip.write(config_file, 'config.ini')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -124,7 +124,7 @@ def get_providers():
|
||||||
|
|
||||||
|
|
||||||
_FFPROBE_BINARY = get_binary("ffprobe")
|
_FFPROBE_BINARY = get_binary("ffprobe")
|
||||||
_FFMPEG_BINARY= get_binary("ffmpeg")
|
_FFMPEG_BINARY = get_binary("ffmpeg")
|
||||||
|
|
||||||
|
|
||||||
def get_providers_auth():
|
def get_providers_auth():
|
||||||
|
|
Loading…
Reference in a new issue