Re: web app

From: Jan Karrman <jan_at_it_dot_uu_dot_se>
Date: Thu Oct 23 2003 - 04:31:34 CDT

On Wed, 22 Oct 2003, Andrew wrote:

> It works fine for me so far, except it lists 'null' for no on the
> initiatives, write-ins, and for the 8th ranked candidate.
>

Beside this, I have not seen anything wrong. I actually got some
strange results first, but that seemed to be caused when I made a
copy-paste of the bar code number (I didn't use the scanner), and
a space character was inserted after the number.

I forgot to mention it in my last mail, but I also made a function
digits2votes(), that is included in src/evm2003/utils/convert.py.
It takes the bar code number as parameter and returns a list of
votes. From the documentation:

    The returned list of votes has 13 elements, one for each contest.
    The first 11 are numbers, and the last two are lists of numbers, where
    each number gives the selected candidate. A zero, or an empty list for
    the last two contests, indicates a blank vote. If the decimal number does
    not represent a correct vote, an empty list is returned.

Two County Commissioner candidates having the same rank is currently
considered invalid, but I can change that.

So, Chris, you can use this to compare with your application. Even
though you seem to have coded the same thing as I did, doing double
work, I think that is only good for verifying purposes.

/Jan
==================================================================
= The content of this message, with the exception of any external
= quotations under fair use, are released to the Public Domain
==================================================================
Received on Fri Oct 31 23:17:03 2003

This archive was generated by hypermail 2.1.8 : Fri Oct 31 2003 - 23:17:07 CST