myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3037] trunk/app/controllers/users_controller.rb:


From: noreply
Subject: [myexperiment-hackers] [3037] trunk/app/controllers/users_controller.rb: fixed bug introduced into the user timeline
Date: Mon, 18 Jun 2012 11:12:58 +0000 (UTC)

Revision
3037
Author
dgc
Date
2012-06-18 11:12:58 +0000 (Mon, 18 Jun 2012)

Log Message

fixed bug introduced into the user timeline

Modified Paths

Diff

Modified: trunk/app/controllers/users_controller.rb (3036 => 3037)


--- trunk/app/controllers/users_controller.rb	2012-06-18 11:07:03 UTC (rev 3036)
+++ trunk/app/controllers/users_controller.rb	2012-06-18 11:12:58 UTC (rev 3037)
@@ -380,7 +380,7 @@
   
   # For simile timeline
   def users_for_timeline
-    @users = User.find(:all, :conditions => [ "users.activated_at IS NOT NULL AND users.spam_score < 50 AND users.created_at < ?", params[:start].to_time, params[:end].to_time ], :include => [ :profile ] )
+    @users = User.find(:all, :conditions => [ "users.activated_at IS NOT NULL AND users.spam_score < 50 AND users.created_at > ? AND users.created_at < ?", params[:start].to_time, params[:end].to_time ], :include => [ :profile ] )
     respond_to do |format|
       format.json { render :partial => 'users/timeline_json', :layout => false }
     end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]