fix issue with using 'skip()' when a filter is present

calling skip() skips over unfiltered items and does not apply
the filter expression to them, which is not what should happen
This commit is contained in:
Mike Fährmann
2017-12-27 22:09:10 +01:00
parent 28cd78aae0
commit 9d73ed4772

View File

@@ -33,7 +33,7 @@ class Job():
predicates.append(util.FilterPredicate(image["filter"]))
if "range" in image:
pred = util.RangePredicate(image["range"])
if pred.lower > 1:
if pred.lower > 1 and "filter" not in image:
pred.index += self.extractor.skip(pred.lower - 1)
predicates.append(pred)
self.pred_url = util.build_predicate(predicates)