From f013e5b6e505b2368971bada18468b3f9487c7a3 Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Thu, 20 Jul 2017 10:23:18 +0300 Subject: Fixed an off-by-one error --- pomu/source/bugz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomu/source/bugz.py b/pomu/source/bugz.py index 62916a3..84adfd7 100644 --- a/pomu/source/bugz.py +++ b/pomu/source/bugz.py @@ -77,7 +77,7 @@ class BugzillaSource(): idxs = parse_range(rng, len(items)) if not idxs: return Result.Err() - filtered = [x for idx, x in enumerate(items) if idx in idxs] + filtered = [x for idx, x in enumerate(items) if idx + 1 in idxs] files = [] for idx, item in enumerate(idxs): if isinstance(item, str): -- cgit v1.2.3-65-gdbad