From: Sam Moore Date: Mon, 5 May 2014 16:15:30 +0000 (+0800) Subject: Fix page input X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ee2ac9a161d5d4cc72475f461e6ec50c040b6470;p=ipdf%2Fsam.git Fix page input Disabled means disabled not just unable to edit Made a hidden input and kept the disabled one with a different name Fixed another newline in email. --- diff --git a/rate-my-litreview.py b/rate-my-litreview.py index 2bee31a..eb0c976 100755 --- a/rate-my-litreview.py +++ b/rate-my-litreview.py @@ -92,7 +92,8 @@ def main(argv): print("

Rate My Lit Review

") print("

Read a page, then rate it with the hammer of judgement!

") - print("

Page: of %d" % (values["page"], max_pages)) + print("" % values["page"]) + print("

Page: of %d" % (values["page"], max_pages)) if values["page"] > 1: print("Prev" % (values["page"]-1)) if values["page"] < max_pages: @@ -135,7 +136,7 @@ def main(argv): # Send emails emails = ["matches@ucc.asn.au"] - userMsg = "Someone Rated Your LitReview!\n" + userMsg = "Someone Rated Your LitReview!\n\n" userMsg += "Your ratings\n-----------------\n" for k in values: userMsg += str(k) + ":\t" + str(values[k]) + "\n"