mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
fix renamed attributes for save and loading jobs
parent
05633ca8b8
commit
55fdbc284f
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue