fix renamed attributes for save and loading jobs

Jeff 2018-03-28 11:32:44 +08:00
parent 05633ca8b8
commit 55fdbc284f

@ -511,11 +511,11 @@ def load_jobs(jq):
next_t -= now # Convert from absolute to relative time
jq.put(job, next_t)
jq._put(job, next_t)
def save_jobs(jq):
job_tuples = jq.queue.queue
job_tuples = jq._queue.queue
with open(JOBS_PICKLE, 'wb') as fp:
for next_t, job in job_tuples: