Fix image counting

This commit is contained in:
simon.kagstrom 2010-03-14 08:32:53 +00:00
parent ee1a80bdf4
commit 3400e9b36b

View File

@ -64,7 +64,7 @@ class HtmlGenerator:
cnt = 0 cnt = 0
for item in self.container.last_10: for item in self.container.last_10:
images = "" images = ""
if cnt % 4 == 0: if cnt % 3 == 0:
cur = cnt 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) 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) ) outf.write("<TR><TD>%s</TD><TD>&nbsp;</TD>%s</TR>\n" % (item, images) )