diff options
author | francis <francis> | 2009-10-14 22:10:45 +0000 |
---|---|---|
committer | francis <francis> | 2009-10-14 22:10:45 +0000 |
commit | 8cfd7a1834ed61f500fe1a737662160708708cf1 (patch) | |
tree | d60eebaecf2aa1797ee8184879a51b0ca122d809 /app/controllers/request_game_controller.rb | |
parent | 1811f4c1e59906a36b90378361c2508ab20b6666 (diff) |
Query didn't work on server.
Diffstat (limited to 'app/controllers/request_game_controller.rb')
-rw-r--r-- | app/controllers/request_game_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/request_game_controller.rb b/app/controllers/request_game_controller.rb index f665cce70..265b78bbe 100644 --- a/app/controllers/request_game_controller.rb +++ b/app/controllers/request_game_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_game_controller.rb,v 1.6 2009-10-14 22:01:27 francis Exp $ +# $Id: request_game_controller.rb,v 1.7 2009-10-14 22:10:45 francis Exp $ class RequestGameController < ApplicationController @@ -25,7 +25,7 @@ class RequestGameController < ApplicationController # Work out league table status_update_events = InfoRequestEvent.find(:all, - :conditions => [ "event_type = 'status_update' and current_date - created_at < 28" ]) + :conditions => [ "event_type = 'status_update' and created_at >= ?", Time.now() - 28.days ]) table = Hash.new { |h,k| h[k] = 0 } for event in status_update_events user_id = event.params[:user_id] |