Skip to content

Commit

Permalink
relax no-voting rule to allow manual voting
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Jun 26, 2024
1 parent 805faa7 commit ce48d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/bot-community.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def vote_on_proposals(client: Client, cid: str, voters: list):
for proposal in proposals:
print(
f"checking proposal {proposal.id}, state: {proposal.state}, approval: {proposal.approval} turnout: {proposal.turnout}")
if proposal.state == 'Ongoing' and proposal.turnout == 0:
if proposal.state == 'Ongoing' and proposal.turnout <= 1:
choices = ['aye', 'nay']
target_approval = random.random()
target_turnout = random.random()
Expand Down

0 comments on commit ce48d13

Please sign in to comment.