tupples all the way down

This commit is contained in:
j 2016-02-12 22:42:11 +05:30
parent 346bff0514
commit 6ddbb04acf

View file

@ -81,7 +81,7 @@ class Tasks(Thread):
tasks = json.load(f) tasks = json.load(f)
for task in tasks: for task in tasks:
if len(task) == 2: if len(task) == 2:
self.q.put(tuple(task)) self.q.put(tuple(task[0], tuple(task[1])))
logger.debug('loaded %s tasks', len(tasks)) logger.debug('loaded %s tasks', len(tasks))
except: except:
logger.debug('failed to load saved tasks', exc_info=True) logger.debug('failed to load saved tasks', exc_info=True)