...
 
Commits (2)
pyres (1.5-2) UNRELEASED; urgency=medium
pyres (1.5-2) unstable; urgency=high
[ Ondřej Nový ]
* d/control: Set Vcs-* to salsa.debian.org
* d/control: Remove ancient X-Python-Version field
-- Ondřej Nový <onovy@debian.org> Tue, 13 Feb 2018 10:11:18 +0100
[ Marcelo Jorge Vieira]
* AttributeError: 'int' object has no attribute 'iteritems' (Closes: #917658)
-- Marcelo Jorge Vieira <metal@debian.org> Mon, 04 Mar 2019 15:28:30 -0300
pyres (1.5-1) unstable; urgency=low
......
--- a/pyres/__init__.py
+++ b/pyres/__init__.py
@@ -291,7 +291,7 @@
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(