Fixed small bug in summary.py

This commit is contained in:
Andrey Kamaev
2012-01-13 12:37:10 +00:00
parent 555ed03613
commit 61cb83b481
2 changed files with 5 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ convert = lambda text: int(text) if text.isdigit() else text
alphanum_keyselector = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ]
def getSetName(tset, idx, columns, short = True):
if columns and len(columns) >= idx:
if columns and len(columns) > idx:
prefix = columns[idx]
else:
prefix = None