minor update

This commit is contained in:
Miroslav Stampar 2011-10-11 22:27:49 +00:00
parent a7a29f33ad
commit 7956390631
3 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,7 @@ def __oneShotErrorUse(expression, field):
threadData = getCurrentThreadData()
retVal = conf.hashDB.retrieve(expression) if not conf.freshQueries else None
retVal = conf.hashDB.retrieve(expression) if not any([conf.flushSession, conf.freshQueries]) else None
offset = 1
chunk_length = None

View File

@ -46,11 +46,12 @@ from lib.request.connect import Connect as Request
from lib.utils.resume import resume
reqCount = 0
resumed = False
def __oneShotUnionUse(expression, unpack=True, limited=False):
global reqCount
retVal = conf.hashDB.retrieve(expression) if not conf.freshQueries else None
retVal = conf.hashDB.retrieve(expression) if not any([conf.flushSession, conf.freshQueries]) else None
if retVal is None:
check = "(?P<result>%s.*%s)" % (kb.chars.start, kb.chars.stop)

View File

@ -46,7 +46,7 @@ class HashDB(object):
def retrieve(self, key):
retVal = None
if key and not any([conf.flushSession, conf.freshQueries]):
if key:
hash_ = self.hashKey(key)
while True:
try: