On Sun, Dec 5, 2010 at 2:20 PM, Xyne <xyne@archlinux.ca> wrote:
Xyne wrote:
Xyne wrote:
See attachment :P
Trying again...
?
Are attachments disabled or is there something wrong on my end?
Here's the script in-line. Sorry for spamming the list.
#!/usr/bin/env python2 from sys import argv
# Quorum (66%) quorum = 0.66
# Total active TUs, yes votes, no votes, abstain votes. TUs, yes, no, abstain = [float(x) for x in argv[1:]] # Total number of votes. votes = yes + no + abstain
# If an absolute majority has voted yes, if yes / TUs > 0.50 \ # or quorum has been established with a simple majority or (votes / TUs > quorum and yes / votes > 0.50): print "The motion has passed."
else: print "The motion has failed."
You need to multiply 0.66 x TUs for the actual quorum requirement and you're counting no and abstain votes exactly the same. My understanding is that abstain votes are only used for establishing a quorum. Otherwise there's no reason to have them.