space
This commit is contained in:
parent
93708b7625
commit
6cf39c2ba6
1 changed files with 4 additions and 3 deletions
|
@ -43,9 +43,9 @@ class Tasks(Thread):
|
||||||
import item.scan
|
import item.scan
|
||||||
from item.models import sync_metadata, get_preview, get_cover
|
from item.models import sync_metadata, get_preview, get_cover
|
||||||
from user.models import (
|
from user.models import (
|
||||||
export_list, update_user_peering,
|
export_list, update_user_peering,
|
||||||
add_local_info, remove_local_info,
|
add_local_info, remove_local_info,
|
||||||
upload
|
upload
|
||||||
)
|
)
|
||||||
shutdown = False
|
shutdown = False
|
||||||
while not shutdown:
|
while not shutdown:
|
||||||
|
@ -98,6 +98,7 @@ class Tasks(Thread):
|
||||||
|
|
||||||
def load_tasks(self):
|
def load_tasks(self):
|
||||||
if os.path.exists(self._taskspath):
|
if os.path.exists(self._taskspath):
|
||||||
|
logger.debug('loading tasks')
|
||||||
try:
|
try:
|
||||||
with open(self._taskspath) as f:
|
with open(self._taskspath) as f:
|
||||||
tasks = json.load(f)
|
tasks = json.load(f)
|
||||||
|
|
Loading…
Reference in a new issue