minor fix

This commit is contained in:
Miroslav Stampar 2010-10-21 23:09:57 +00:00
parent 2de3081b50
commit a9b50a1e82

View File

@ -29,15 +29,9 @@ def loadHistory():
def queriesForAutoCompletion(): def queriesForAutoCompletion():
autoComplQueries = {} autoComplQueries = {}
for _, query in queries[kb.dbms].items(): for item in queries[kb.dbms]._toflat():
if isinstance(query, basestring) and len(query) > 1: if item._has_key('query') and len(item.query) > 1 and item._name != 'blind':
autoComplQuery = query autoComplQueries[item.query] = None
elif isinstance(query, dict) and "inband" in query:
autoComplQuery = query["inband"]["query"]
else:
continue
autoComplQueries[autoComplQuery] = None
return autoComplQueries return autoComplQueries