From ce48d135c4bcbe4255c541e1cb7a6cbddcd4cfa8 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 26 Jun 2024 18:37:43 +0200 Subject: [PATCH] relax no-voting rule to allow manual voting --- client/bot-community.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/bot-community.py b/client/bot-community.py index 15751f5e..c3afcc84 100755 --- a/client/bot-community.py +++ b/client/bot-community.py @@ -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()