From 2f51aba2bca8ccca012a12aae4c39d4f3c67094c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Wed, 1 Jan 2025 19:45:53 +0000 Subject: [PATCH] Track sketchpad redemption --- indexgen.py | 14 +++++++++++++- log-template.py | 3 ++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/indexgen.py b/indexgen.py index 2bc4138..5f7a735 100644 --- a/indexgen.py +++ b/indexgen.py @@ -224,7 +224,19 @@ def indexgen(): content.write(str(sketch % 20)) content.write(".gif\">\n") if sketch > 19: - content.write("\n") + content.write(" 0: + content.write(str(sketchdifference) + " to turn in") + else: + content.write("all turned in") + content.write("\">\n") content.write("\n\n" + str(sketch % 20) + "/20\n") if sketch > 19: content.write("" + str(int(sketch / 20)) + " completed\n") diff --git a/log-template.py b/log-template.py index cbbb4d1..39786f4 100644 --- a/log-template.py +++ b/log-template.py @@ -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 } ]