[aur-general] Amendment

Xyne xyne at archlinux.ca
Sun Dec 5 14:20:35 EST 2010


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."


More information about the aur-general mailing list