Fix little errors
This commit is contained in:
parent
a6f8c71bf2
commit
0602d3ce4b
|
@ -265,7 +265,7 @@ class DisplayHTMLBlockTableWithGraph(DisplayHTMLBlockTable):
|
||||||
|
|
||||||
def _computeMax(self):
|
def _computeMax(self):
|
||||||
for i in range(0, self.nb_valid_rows):
|
for i in range(0, self.nb_valid_rows):
|
||||||
row = self.row[i]
|
row = self.rows[i]
|
||||||
for j in range(1, len(row)):
|
for j in range(1, len(row)):
|
||||||
if type(row[j]) != int:
|
if type(row[j]) != int:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -111,5 +111,7 @@ class IWLADisplayStatsDiff(IPlugin):
|
||||||
block.setCellCSSClass(idx, 0, cls)
|
block.setCellCSSClass(idx, 0, cls)
|
||||||
if diff:
|
if diff:
|
||||||
value = block.getCellValue(idx, self.display_index)
|
value = block.getCellValue(idx, self.display_index)
|
||||||
|
if type(value) == int:
|
||||||
|
value = str(value)
|
||||||
value += ' (+%d)' % diff
|
value += ' (+%d)' % diff
|
||||||
block.setCellValue(idx, self.display_index, value)
|
block.setCellValue(idx, self.display_index, value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user