Fix image counting

This commit is contained in:
simon.kagstrom 2010-03-14 08:32:53 +00:00
parent ee1a80bdf4
commit 3400e9b36b
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class HtmlGenerator:
cnt = 0
for item in self.container.last_10:
images = ""
if cnt % 4 == 0:
if cnt % 3 == 0:
cur = cnt
images = "<TH ROWSPAN=4><IMG SRC=\"images/%d.png\"></TH><TH ROWSPAN=4><IMG SRC=\"images/%d.png\"></TH><TH ROWSPAN=4><IMG SRC=\"images/%d.png\"></TH>" % (cur, cur + 1, cur + 2)
outf.write("<TR><TD>%s</TD><TD>&nbsp;</TD>%s</TR>\n" % (item, images) )