Skip to content

Commit

Permalink
fix: hierarchy voting not working
Browse files Browse the repository at this point in the history
fix hierarchy voting
  • Loading branch information
IsmaelHerrera2000 committed Dec 19, 2023
1 parent 561b53c commit 66cb8ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion decide/census/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.db import models

ROLES = [
("0", "Only for Hierchical Votings. Select this if voting isn`t Hierchical"),
("1", "Only for Hierchical Votings. Select this if voting isn`t Hierchical"),
("1", "Balanceado"),
("2", "Colaborador"),
("3", "Coordinador"),
Expand Down
2 changes: 1 addition & 1 deletion decide/store/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def post(self, request):
census_content = census.content.decode("utf-8")
role = census_content.strip('"')
numero = int(role)
for i in range(1, numero):
for i in range(0, numero):
v, _ = Vote.objects.get_or_create(
voting_id=vid, voter_id=uid, value=i, defaults=defs
)
Expand Down

0 comments on commit 66cb8ed

Please sign in to comment.