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