From 55fdbc284f100d7745fa6eb38f226fa73da4f330 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 28 Mar 2018 11:32:44 +0800 Subject: [PATCH] fix renamed attributes for save and loading jobs --- Code-snippets.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code-snippets.md b/Code-snippets.md index a1d956c..9a5c9f6 100644 --- a/Code-snippets.md +++ b/Code-snippets.md @@ -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: