Yet another bug found while reviewing docs
authorIustin Pop <iustin@google.com>
Mon, 27 Oct 2008 23:20:57 +0000 (23:20 +0000)
committerIustin Pop <iustin@google.com>
Mon, 27 Oct 2008 23:20:57 +0000 (23:20 +0000)
The newer_than variable can be either None or an int, and we normalize
it to an integer previously and save it in the 'serial' variable, which
should be used instead.

Reviewed-by: imsnah

lib/jqueue.py

index 86c3d86..a3ef748 100644 (file)
@@ -185,7 +185,7 @@ class _QueuedJob(object):
 
     entries = []
     for op in self.ops:
-      entries.extend(filter(lambda entry: entry[0] > newer_than, op.log))
+      entries.extend(filter(lambda entry: entry[0] > serial, op.log))
 
     return entries