From ee2ac9a161d5d4cc72475f461e6ec50c040b6470 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Tue, 6 May 2014 00:15:30 +0800 Subject: [PATCH] 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. --- rate-my-litreview.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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" -- 2.20.1