Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
CorpusCallosum committed Nov 28, 2012
1 parent 5e4b16e commit 2201974
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/photo_controller.rb
Expand Up @@ -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


Expand Down

0 comments on commit 2201974

Please sign in to comment.