Permalink
Browse files

Revert

  • Loading branch information...
1 parent 5e4b16e commit 2201974a409de52aab1b6404efdd3dbb539cdd0f @CorpusCallosum CorpusCallosum committed Nov 28, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/controllers/photo_controller.rb
@@ -46,8 +46,7 @@ def popular
# Show the top-rated images from the past 24 hours
def setPopPhotos
@limit = params[:limit] || 50;
- @days = 2;
- @photos = Photo.where("created_at > ? AND score > 0", now - 24 * days * 3600).order("score DESC").limit(@limit)
+ @photos = Photo.where("created_at > ? AND score > 0", now - 24 * 3600).order("score DESC").limit(@limit)
end

0 comments on commit 2201974

Please sign in to comment.