@ -224,7 +224,19 @@ def indexgen():
content.write(str(sketch % 20))
content.write(".gif\"></td>\n")
if sketch > 19:
content.write("<td><img src=\"/assets/sketch/20.gif\"></td>\n")
content.write("<td><img src=\"/assets/sketch/20.gif\" title=\"")
redeemedsketch = 0
for event in log.log:
try:
redeemedsketch -= event["sketch"]
except:
pass
sketchdifference = int(sketch / 20) - redeemedsketch
if sketchdifference > 0:
content.write(str(sketchdifference) + " to turn in")
else:
content.write("all turned in")
content.write("\"></td>\n")
content.write("</tr>\n<tr>\n<td align=\"center\">" + str(sketch % 20) + "/20</td>\n")
content.write("<td align=\"center\">" + str(int(sketch / 20)) + " completed</td>\n")
@ -8,6 +8,7 @@ log = [
"lost":["card03","card04"],
"crayons":{"red":1,"orange":2,"yellow":-3},
"coupons":{"01":5},
"decks":["deck1","deck2","deck3","deck4","deck5","deck6","deck7","deck8"] # only if "event":"portfolio"
"decks":["deck1","deck2","deck3","deck4","deck5","deck6","deck7","deck8"], # only if "event":"portfolio"
"sketch":-1 # for turning in 1 sketchpad
}
]