processing voter list

101 views
Skip to first unread message

Kodondi shadrack

unread,
Sep 1, 2021, 9:49:08 PM9/1/21
to Helios Voting
Hello members,

  am processing voter list, upload indicates that 4590 voters processed  and loaded,yet from the table i can only see  of 2379,what could be the issue? kindly assist am due to conduct this election



voter roll issue-001.jpg

Warwick McNaughton

unread,
Sep 2, 2021, 4:21:55 AM9/2/21
to helios...@googlegroups.com
Is Celery running?  

Do you know which value is the correct one?

It is a bit hard to read the screenshots, but it looks like there are some tasks that have not finished processing?

It could be just a matter of backing out of the page and coming back in, as a way of refreshing the page?

Just some thoughts.

Warwick


On 2/09/2021, at 1:49 PM, Kodondi shadrack <kodondi...@gmail.com> wrote:

Hello members,

  am processing voter list, upload indicates that 4590 voters processed  and loaded,yet from the table i can only see  of 2379,what could be the issue? kindly assist am due to conduct this election



<voter roll issue-001.jpg>

--
--
Helios Voting Google Group
To post: helios...@googlegroups.com
To unsubscribe: helios-votin...@googlegroups.com
More: http://groups.google.com/group/helios-voting?hl=en

---
You received this message because you are subscribed to the Google Groups "Helios Voting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helios-votin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/92f67650-f54c-479d-8067-be236519874en%40googlegroups.com.
<voter roll issue-001.jpg>

Kodondi shadrack

unread,
Sep 2, 2021, 5:30:48 AM9/2/21
to helios...@googlegroups.com
Thanks Warwick,you have been very helpful,when i access the database,my list is ok with all the voter lists as uploaded..celery is up and running,the first screen shot indicates all voter lists have been processed (4590 voters processed)...the other screen indicates 1 to 50 of  2379 uploaded.I just want every voter to participate and i have to be sure all will make a choice in this election.

Kind regards

S.kodondi

Virus-free. www.avast.com

You received this message because you are subscribed to a topic in the Google Groups "Helios Voting" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/helios-voting/CyHpZ5F0AgM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to helios-votin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/helios-voting/79252BDA-F3CB-493E-9FC9-8FF6AA4EA284%40gmail.com.

Warwick McNaughton

unread,
Sep 2, 2021, 3:09:50 PM9/2/21
to helios...@googlegroups.com
Couple more thoughts.

I noticed on the screenshot that the email field is empty on one of the lines.  Helios won’t let me upload a file which has a missing email.

My understanding of the flow of the code - in case you want to dig deeper with breakpoints etc. and are able to re-run the processing of the file:

- the page in your sceenshot is helios-server/helios/templates/voters_list.html (https://github.com/benadida/helios-server/blob/master/helios/templates/voters_list.html )
- the number of voters loaded (ie 4590 in your screenshot) is given by vf.num_voters on line 72
- vf is an element of a voter_files array
- the number of voters given in the paginator (ie 2379) is given by total_voters on line 106
- voter_files and total_voters are determined in helios-server/helios/views.py on lines 1205 and 1220
- total_voters is determined from an instance of the Django Paginator (1217) and the paginator is instantiated with the ‘voters’ variable which is assigned on line 1209.
- the assignment on line 1209 limits the number of voters to just those voters in the current election 
- the processing of the voter file is handled by a celery task at line 122 in helios-server/helios/tasks.py (https://github.com/benadida/helios-server/blob/master/helios/tasks.py )
- a voter file is passed in to this function
- it calls voter_file.process() at line 124 which is a method of the VoterFile class and is defined at line 788 in helios-server/helios/models.py
- on line 801 it checks whether the voter already exists and only creates a voter (line 804) if there is no existing voter with the same id for the same election
- prior to that on line 797 it calls itervoters()
- itervoters() on line 764 reads in the content of the csv file.  This might be a good point to examine what it is reading in and following through to what it saves as voters

Hope this provides some indications on where to start looking.




Reply all
Reply to author
Forward
0 new messages