You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2016/01/05 13:47:13 UTC

svn commit: r1723062 - /steve/trunk/pysteve/www/cgi-bin/rest_voter.py

Author: humbedooh
Date: Tue Jan  5 12:47:13 2016
New Revision: 1723062

URL: http://svn.apache.org/viewvc?rev=1723062&view=rev
Log:
fix some typos

Modified:
    steve/trunk/pysteve/www/cgi-bin/rest_voter.py

Modified: steve/trunk/pysteve/www/cgi-bin/rest_voter.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/cgi-bin/rest_voter.py?rev=1723062&r1=1723061&r2=1723062&view=diff
==============================================================================
--- steve/trunk/pysteve/www/cgi-bin/rest_voter.py (original)
+++ steve/trunk/pysteve/www/cgi-bin/rest_voter.py Tue Jan  5 12:47:13 2016
@@ -154,8 +154,8 @@ if pathinfo:
                     if 'closed' in basedata and basedata['closed'] == True:
                         raise Exception("This election has closed")
                     if 'open' in basedata and basedata['open'] == "true":
-                        uid, xhash = voter.add(election, basedata, email)
-                        voter.email(email, "Your voter link for %s" % basedata['title'], "Your personal vote link is: %s/election.html?%s/%s\nDo not share this link with anyone." % (config.get("general", "rooturl"), election, uid))
+                        uid, xhash = voter.add(electionID, basedata, email)
+                        voter.email(email, "Your voter link for %s" % basedata['title'], "Your personal vote link is: %s/election.html?%s/%s\nDo not share this link with anyone." % (config.get("general", "rooturl"), electionID, uid))
                         response.respond(200, {'message': "Voter ID sent via email"})
                     else:
                         response.respond(403, {'message': "Could not request voter ID: This eleciton is closed for the public"})