merged in licensing changes (we'll have to undo this eventually)
[selectricity] / app / controllers / front_controller.rb
index c4a198da265dbbebe6b9b481c6f832568151a286..f84d39672bad9b2cc37af05f264946e120a9c65a 100644 (file)
@@ -1,3 +1,10 @@
+# Selectricity: Voting Machinery for the Masses
+# Copyright (C) 2007, 2008 Benjamin Mako Hill <mako@atdot.cc>
+# Copyright (C) 2007 Massachusetts Institute of Technology
+#
+# This program is free software. Please see the COPYING file for
+# details.
+
 class FrontController < ApplicationController
   layout 'frontpage'
   require_dependency "user"
@@ -5,7 +12,7 @@ class FrontController < ApplicationController
   require_dependency "account"
 
   def index
-    @quickvotes = QuickVote.find(:all).sort {|a,b| b.enddate <=> a.enddate}[0..1]
+    @quickvotes = QuickVote.find(:all).sort {|a,b| b.startdate <=> a.startdate}[0..1]
     # if the person claims they are logged in
    
     if logged_in?

Benjamin Mako Hill || Want to submit a patch?