Skip to content

Commit

Permalink
AttributeError: 'int' object has no attribute 'iteritems' (Closes bin…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelometal committed Mar 4, 2019
1 parent 4f4b282 commit 7358aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyres/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def enqueue_at_from_string(self, datetime, klass_as_string, queue, *args, **kwar
def delayed_push(self, datetime, item):
key = int(time.mktime(datetime.timetuple()))
self.redis.rpush('resque:delayed:%s' % key, ResQ.encode(item))
self.redis.zadd('resque:delayed_queue_schedule', key, key)
self.redis.zadd('resque:delayed_queue_schedule', {key: key})

def delayed_queue_peek(self, start, count):
return [int(item) for item in self.redis.zrange(
Expand Down

0 comments on commit 7358aef

Please sign in to comment.