Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix stats

  • Loading branch information...
commit 3508fe82c426235f980505474f50c787551339d4 1 parent f279fb9
authored March 23, 2012 nono committed March 23, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  app/models/statistics/moderation.rb
2  app/models/statistics/moderation.rb
@@ -48,7 +48,7 @@ def top_am
48 48
   end
49 49
 
50 50
   def nb_moderations_x_days(user_id,nbdays)
51  
-    count "SELECT COUNT(*) AS cnt FROM nodes JOIN news ON nodes.content_id = news.id AND nodes.content_type='News' WHERE nodes.created_at >= '#{nbdays.days.ago.to_s :db}' AND user_id=#{user_id}"
  51
+    count "SELECT COUNT(*) AS cnt FROM nodes JOIN news ON nodes.content_id = news.id AND nodes.content_type='News' WHERE nodes.created_at >= '#{nbdays.days.ago.to_s :db}' AND moderation_id=#{user_id}"
52 52
   end
53 53
 
54 54
   def nb_editions_x_days(user_id,nbdays)

0 notes on commit 3508fe8

Please sign in to comment.
Something went wrong with that request. Please try again.