vote_index needs to be changed to a more reliable, and readable solution. Also, votes will be set to 0 for everyone by default.
When someone submits, it creates a dictionary for them. When someone votes, it creates a dictionary for them, if one doesn't already exist. Just got to make sure that when the results are posted, it only posts the people who submitted (check the submitted field).
In the
data
branch, we are moving from using lists to dictionary per user. The structure looks like this:vote_index
needs to be changed to a more reliable, and readable solution. Also,votes
will be set to 0 for everyone by default.When someone submits, it creates a dictionary for them. When someone votes, it creates a dictionary for them, if one doesn't already exist. Just got to make sure that when the results are posted, it only posts the people who submitted (check the submitted field).