Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

quick temp fix for site

  • Loading branch information...
commit 0f2c6e44b37cd61edcba92ee3f8e0a36f7bf599a 1 parent 7032e24
@CorpusCallosum CorpusCallosum authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  app/controllers/photo_controller.rb
View
3  app/controllers/photo_controller.rb
@@ -46,7 +46,8 @@ def popular
# Show the top-rated images from the past 24 hours
def setPopPhotos
@limit = params[:limit] || 50;
- @photos = Photo.where("created_at > ? AND score > 0", now - 24 * 3600).order("score DESC").limit(@limit)
+ @days = 2;
+ @photos = Photo.where("created_at > ? AND score > 0", now - 24 * days * 3600).order("score DESC").limit(@limit)
end
Please sign in to comment.
Something went wrong with that request. Please try again.