From cdda8caa8ba294ef030987ef73133301adf57221 Mon Sep 17 00:00:00 2001 From: khuxkm fbexl Date: Sun, 2 Dec 2018 02:43:46 +0000 Subject: [PATCH] Fixed tasks.TaskPool.load_state --- tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks.py b/tasks.py index 8d62f10..161a4a7 100644 --- a/tasks.py +++ b/tasks.py @@ -48,3 +48,4 @@ class TaskPool: def load_state(self, index): with open("state.{}.json".format(self.coroutines[index]["name"])) as f: self.states[index] = json.load(f) + self.coroutines[index]["state"] = self.states[index]