From 6ddbb04acf0579f37b4dbab2a70113324be543d5 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 12 Feb 2016 22:42:11 +0530 Subject: [PATCH] tupples all the way down --- oml/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/tasks.py b/oml/tasks.py index 4b5f6bd..1cd8359 100644 --- a/oml/tasks.py +++ b/oml/tasks.py @@ -81,7 +81,7 @@ class Tasks(Thread): tasks = json.load(f) for task in tasks: 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)) except: logger.debug('failed to load saved tasks', exc_info=True)