]> projects.mako.cc - selectricity/blobdiff - lib/rubyvote/condorcet.rb
Modified the methods in graphs controller so they would work for Selectricity, but...
[selectricity] / lib / rubyvote / condorcet.rb
old mode 100644 (file)
new mode 100755 (executable)
index 616de48..95663d4
@@ -142,7 +142,7 @@ class PureCondorcetResult < CondorcetResult
         victors[candidate].length == @election.candidates.length - 1
     end
 
-    @winners << winners if winners.length == 1
+    @winners = winners if winners.length == 1
   end
 end
 

Benjamin Mako Hill || Want to submit a patch?