forked from khuxkm/cosmicbot
Fixed tasks.TaskPool.load_state
This commit is contained in:
parent
494917a441
commit
cdda8caa8b
1
tasks.py
1
tasks.py
|
@ -48,3 +48,4 @@ class TaskPool:
|
||||||
def load_state(self, index):
|
def load_state(self, index):
|
||||||
with open("state.{}.json".format(self.coroutines[index]["name"])) as f:
|
with open("state.{}.json".format(self.coroutines[index]["name"])) as f:
|
||||||
self.states[index] = json.load(f)
|
self.states[index] = json.load(f)
|
||||||
|
self.coroutines[index]["state"] = self.states[index]
|
||||||
|
|
Loading…
Reference in New Issue