From 0a7a6486948e702002f8f2a540f9e2450650d607 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 25 Jul 2011 11:15:18 +0000 Subject: [PATCH] Minor bug fix for --start, now all techniques return the same result (before blind techniques returned from one entry behind) --- lib/core/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 1d588f3d7..95d3192a8 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1323,8 +1323,10 @@ def getRange(count, dump=False, plusOne=False): if plusOne: indexRange = range(limitStart, limitStop + 1) - else: + elif not dump: indexRange = range(limitStart - 1, limitStop) + else: + indexRange = range(limitStart, limitStop) return indexRange @@ -2464,7 +2466,6 @@ def setOptimize(): debugMsg = "turning off --null-connection switch used indirectly by switch -o" logger.debug(debugMsg) - def initTechnique(technique=None): """ Prepares proper page template and match ratio for technique specified