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 1de4b1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
simplejson>3.0
redis>2.4.12
redis>3.2.0
setproctitle>1.0

0 comments on commit 1de4b1d

Please sign in to comment.