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/03/15 17:52:36 UTC

svn commit: r1735139 - /steve/trunk/pysteve/lib/plugins/stv.py

Author: humbedooh
Date: Tue Mar 15 16:52:36 2016
New Revision: 1735139

URL: http://svn.apache.org/viewvc?rev=1735139&view=rev
Log:
fix validation

Modified:
    steve/trunk/pysteve/lib/plugins/stv.py

Modified: steve/trunk/pysteve/lib/plugins/stv.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/lib/plugins/stv.py?rev=1735139&r1=1735138&r2=1735139&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/plugins/stv.py (original)
+++ steve/trunk/pysteve/lib/plugins/stv.py Tue Mar 15 16:52:36 2016
@@ -45,7 +45,7 @@ def makeLetter(num, version = 2):
 def validateSTV(vote, issue):
     "Tries to validate a vote, returns why if not valid, None otherwise"
     # aa, ab, ac, ad.... az, ba, bb, bc, bd...bz, ca, cb, cc, cd...
-    letters = [makeLetter(x) for x in range(1,100)]
+    letters = [makeLetter(x) for x in range(0,100)]
     letters.append('-')
     seats = vote.split(" ")
     for char in letters: