Upgrading to GitLab 11.10.0. Expect errors and see debian-infrastructure-announce@lists.debian.org for further information.

Commit 6615a8dd authored by Marcelo Jorge Vieira's avatar Marcelo Jorge Vieira

AttributeError: 'int' object has no attribute 'iteritems' (Closes: #917658)

parent 6fd0b733
......@@ -2,6 +2,7 @@ pyres (1.5-2) UNRELEASED; urgency=medium
* d/control: Set Vcs-* to salsa.debian.org
* d/control: Remove ancient X-Python-Version field
* AttributeError: 'int' object has no attribute 'iteritems' (Closes: #917658)
-- Ondřej Nový <onovy@debian.org> Tue, 13 Feb 2018 10:11:18 +0100
......
--- 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(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment