fix import style
This commit is contained in:
parent
2a4e9ae2cf
commit
427bea581b
1 changed files with 2 additions and 4 deletions
|
@ -14,7 +14,8 @@ from Config import config
|
||||||
from util import helper
|
from util import helper
|
||||||
from util import RateLimit
|
from util import RateLimit
|
||||||
from util import Cached
|
from util import Cached
|
||||||
|
from .Site import Site
|
||||||
|
from Debug import Debug
|
||||||
|
|
||||||
@PluginManager.acceptPlugins
|
@PluginManager.acceptPlugins
|
||||||
class SiteManager(object):
|
class SiteManager(object):
|
||||||
|
@ -30,10 +31,8 @@ class SiteManager(object):
|
||||||
# Load all sites from data/sites.json
|
# Load all sites from data/sites.json
|
||||||
@util.Noparallel()
|
@util.Noparallel()
|
||||||
def load(self, cleanup=True, startup=False):
|
def load(self, cleanup=True, startup=False):
|
||||||
from Debug import Debug
|
|
||||||
self.log.info("Loading sites... (cleanup: %s, startup: %s)" % (cleanup, startup))
|
self.log.info("Loading sites... (cleanup: %s, startup: %s)" % (cleanup, startup))
|
||||||
self.loaded = False
|
self.loaded = False
|
||||||
from .Site import Site
|
|
||||||
address_found = []
|
address_found = []
|
||||||
added = 0
|
added = 0
|
||||||
load_s = time.time()
|
load_s = time.time()
|
||||||
|
@ -170,7 +169,6 @@ class SiteManager(object):
|
||||||
return site
|
return site
|
||||||
|
|
||||||
def add(self, address, all_file=True, settings=None, **kwargs):
|
def add(self, address, all_file=True, settings=None, **kwargs):
|
||||||
from .Site import Site
|
|
||||||
self.sites_changed = int(time.time())
|
self.sites_changed = int(time.time())
|
||||||
# Try to find site with differect case
|
# Try to find site with differect case
|
||||||
for recover_address, recover_site in list(self.sites.items()):
|
for recover_address, recover_site in list(self.sites.items()):
|
||||||
|
|
Loading…
Reference in a new issue