Literally Reviewed To Death
[ipdf/sam.git] / rate-my-litreview.py
index 2bee31a..eb0c976 100755 (executable)
@@ -92,7 +92,8 @@ def main(argv):
        
        print("<h1>Rate My Lit Review</h1>")
        print("<p>Read a page, then rate it with the hammer of judgement!</p>")
-       print("<p> Page: <input type=\"text\" name=\"page\" value=\"%d\" disabled> of %d" % (values["page"], max_pages))
+       print("<input type=\"text\" name=\"page\" value=\"%d\" hidden>" % values["page"])
+       print("<p> Page: <input type=\"text\" name=\"paged\" value=\"%d\" disabled> of %d" % (values["page"], max_pages))
        if values["page"] > 1:
                print("<a href=\"rate-my-litreview.py?page=%d\">Prev</a>" % (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"

UCC git Repository :: git.ucc.asn.au