mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 08:13:14 +00:00
no log: fixed improper imports
This commit is contained in:
parent
b7e908645e
commit
0bfaf7a36c
2 changed files with 7 additions and 7 deletions
|
@ -496,27 +496,27 @@ def save_settings(settings_items):
|
||||||
|
|
||||||
# Reconfigure Bazarr to reflect changes
|
# Reconfigure Bazarr to reflect changes
|
||||||
if configure_debug:
|
if configure_debug:
|
||||||
from logger import configure_logging
|
from .logger import configure_logging
|
||||||
configure_logging(settings.general.getboolean('debug') or args.debug)
|
configure_logging(settings.general.getboolean('debug') or args.debug)
|
||||||
|
|
||||||
if configure_captcha:
|
if configure_captcha:
|
||||||
configure_captcha_func()
|
configure_captcha_func()
|
||||||
|
|
||||||
if update_schedule:
|
if update_schedule:
|
||||||
from scheduler import scheduler
|
from .scheduler import scheduler
|
||||||
from event_handler import event_stream
|
from .event_handler import event_stream
|
||||||
scheduler.update_configurable_tasks()
|
scheduler.update_configurable_tasks()
|
||||||
event_stream(type='task')
|
event_stream(type='task')
|
||||||
|
|
||||||
if sonarr_changed:
|
if sonarr_changed:
|
||||||
from signalr_client import sonarr_signalr_client
|
from .signalr_client import sonarr_signalr_client
|
||||||
try:
|
try:
|
||||||
sonarr_signalr_client.restart()
|
sonarr_signalr_client.restart()
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if radarr_changed:
|
if radarr_changed:
|
||||||
from signalr_client import radarr_signalr_client
|
from .signalr_client import radarr_signalr_client
|
||||||
try:
|
try:
|
||||||
radarr_signalr_client.restart()
|
radarr_signalr_client.restart()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
@ -530,7 +530,7 @@ def save_settings(settings_items):
|
||||||
configure_proxy_func()
|
configure_proxy_func()
|
||||||
|
|
||||||
if exclusion_updated:
|
if exclusion_updated:
|
||||||
from event_handler import event_stream
|
from .event_handler import event_stream
|
||||||
event_stream(type='badges')
|
event_stream(type='badges')
|
||||||
if sonarr_exclusion_updated:
|
if sonarr_exclusion_updated:
|
||||||
event_stream(type='reset-episode-wanted')
|
event_stream(type='reset-episode-wanted')
|
||||||
|
|
|
@ -164,7 +164,7 @@ def prepare_restore(filename):
|
||||||
|
|
||||||
if success:
|
if success:
|
||||||
logging.debug('time to restart')
|
logging.debug('time to restart')
|
||||||
from server import webserver
|
from app.server import webserver
|
||||||
webserver.restart()
|
webserver.restart()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue